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:
Verified
Q2: In the following line, the word writeln
Q3: Which of the following operators associates from
Q4: What does the following expression evaluate to
(
Q5: An alert dialog displaying the text "Welcome!"
Q6: Consider the following HTML5 code.
< html >
<
Q7: Which of the following sequences does not
Q8: Consider the following script. What is wrong
Q9: What is the result of the statement
Q10: Which of the following is not a
Q11: Whenever a value is placed in a
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents