Ajax-loader-large-white
Using Functions
Arguments

Part of a series providing exercises and additional material for readers of Sams Teach Yourself JavaScript in 24 Hours (5th Edition), this course includes definition and calling of functions, passing arguments and using return values.

Arguments (sometimes referred to as parameters) are values passed to a function.

Instructions

Change the value passed to the cube() function and see how the value that is output by the function changes. Make sure the value you enter is numeric.

script.js