...

/

Solution: Numbers

Solution: Numbers

Review the solutions to the tasks from the numbers challenge.

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. The prompt() function displays a dialog box in the browser with the message ...