'Could you let me know what went wrong in this function? (Beginner)

CODE: function power(x, n){

return x**n

}

power(2,5)

QUESTION: why am I unable to see the answer 120 be logged, without putting console log into the function? help me understand the return statement.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source