Consider the following script. What is wrong with the following code
< script type = "text/javascript" >
Var firstNumber;
ThirdNumber;
FirstNumber = window.prompt("Enter an integer", "0") ;
SecondNumber = window.prompt("Enter an integer", "0") ;
ThirdNumber = firstNumber + secondNumber;
< /script >
A) thirdNumber in line 7 must be in quotes.
B) The words Enter an integer in line 6 should not be in quotes.
C) The word thirdnumber in line 3 should have a comma after it.
D) The word var must be placed before thirdNumber in line 3.
Correct Answer:
Verified
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
Q9: What is the result of the statement
Q10: Which of the following is not a
Q11: Whenever a value is placed in a
Q12: Which of the following is not a
Q13: Which of the following statements would correctly
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