Write a function called "cube".
Given a number, "cube" returns the cube of that number.
Can someone explain this to me please
return Math.pow(num, 3);
but your way works as well
Cube a number Javascript
Write a function called "cube".
Given a number, "cube" returns the cube of that number.
Can someone explain this to me please
return Math.pow(num, 3);
but your way works as well