Cube (Exercise)
00:00
This one is called Cube, and I want you to write a function called cube()
that takes one number parameter and returns the value of that number raised to the third power.
00:12
Test the function by calling your cube()
function on a few different numbers and displaying the results.
00:19 Again, you can pause this video course and then continue once you’ve solved the exercise to see how I solve it.
Become a Member to join the conversation.