Solved

What Will the Browser Display If the Following Script Is

Question 1

Multiple Choice

What will the browser display if the following script is executed and the user enters 5 at both prompts
< script type = "text/javascript" >
< !--
Var firstNumber = window.prompt( "Enter an integer", "0" ) ;
Var secondNumber= window.prompt( "Enter an integer", "0" ) ;
Var thirdNumber;
ThirdNumber = firstNumber + secondNumber;
Document.write( thirdNumber ) ;
//-- >
< /script >


A) nothing
B) 0
C) 10
D) 55

Correct Answer:

verifed

Verified

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents