adplus-dvertising
frame-decoration

Question

What will be printed inside webpage ?
var message="Hello JS";
document.write(Message);

a.

It will crash browser since No Error handler is provided

b.

Hello JS

c.

"Hello JS" will be printed multiple times

d.

Nothing Will be printed because Code is not error free

Posted under Web Technologies

Answer: (d).Nothing Will be printed because Code is not error free

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What will be printed inside webpage ?

Similar Questions

Discover Related MCQs

Q. Multiple JS statements are written inside pair of ________ to form a statement block.

Q. Group of JavaScript Statements is called as _________.

Q. Single Line Comment in JavaScript Starts with _________ Symbol.

Q. Which of the following is considered as End of Single line comment ?

Q. Comments in JS are ignored by ____________.

Q. Comment Statement is _________________ type of statement.

Q. JS Comment can be used for following purposes -

Q. Which of the statement will be neglected by Browser ?

Q. Person XYZ wrote his name and date of code creation at the start , What kind of comment he has written ?

Q. In multiple line comment , End of the comment is specified by ________ Symbol.

Q. Which of the following is not a compound assignment operator ?

Q. If a string cannot be converted to a number __________ will be returned.

Q. If the values on either side of '+' operator are numerical values then ___________.

Q. During addition of two numbers , suppose one of the number is NaN then output of the following code will be ?

Q. +Infinity in JS gets added with +Infinity then output of the code will be

Q. -Infinity in JS gets added with -Infinity then output of the code will be

Q. -Infinity in JS gets added with +Infinity then output of the code will be

Q. Variable can hold ________ value at a time.

Q. Integer Variable is declared using following syntax in JavaScript.

Q. We can declare ___________ at a time. Select most appropriate option.