Consider the following HTML5 code.
< html >
< script type = "text/javascript" >
< !--
< !-- document.writeln("Hello World") ; -- >
//-- >
< /script >
< /html >
What would a browser capable of scripting display when executing this code
A) document.writeln("Hello World") ;
B) nothing
C) Hello World
D) < html > < script type = "text/javascript" >
< !--
< !-- document.writeln("Hello World < /p >") ;
//-- >
< /script >
< /html >
Correct Answer:
Verified
Q1: What will the browser display if the
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!"
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