The following code uses the prompt() function to get two numbers from the user. It then adds

Question:

The following code uses the prompt() function to get two numbers from the user. It then adds those two numbers and writes the result to the page:

However, if you try out the code, you’ll discover that it doesn’t work. Why not? Change the code so that it does work.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: