59.9k views
5 votes
What will the browser display if the following script is executed and the user enters 5 at both prompts?a) nothingb) 0c) 10d) 55d) 556.9 Whenever a value is pl

1 Answer

1 vote

Answer:

c) 10.

Step-by-step explanation:

The script will return 10 after the user enters 5 at both prompts.In the script we have three variables firstNumber,secondNumberand thirdNumber.Where the user is entering the values in the firstNumber and the secondNumber and thirdNumber stores the sum of firsNumber and secondNumber and after that it writes on the web page using the document.write.

User Roosto
by
5.2k points