Solution: Numbers
Review the solutions to the tasks from the numbers challenge.
We'll cover the following...
Solution to task 1
Here is a possible solution for printing the double of a number:
Explanation
Line 1: Declares a constant variable named
number
. Theprompt()
function displays a dialog box in the browser with the message ...