adplus-dvertising
frame-decoration

Question

What will be the Output of the below Code ?
<html>
<body>
<script type="text/javascript">
<!--
document.print("Hello");
//-->
</script>
</body>
</html>

a.

Will Throw Error

b.

Hello

c.

Will not print anything because of Comment

d.

None of These

Answer: (b).Hello

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 the Output of the below Code ?

Similar Questions

Discover Related MCQs

Q. Which was the first browser to support JavaScript ?

Q. JavaScript is invented by ________.

Q. JavaScript was invented at _______ Lab .

Q. JavaScript was originally developed under the name _______.

Q. In March 1996, _______________ was released, featuring support for JavaScript.

Q. Microsoft Developed a compatible dialect of JavaScript called _____________.

Q. Executable single line of Script is called as _________________.

Q. JavaScript Statements are executed by ________ .

Q. Java Statement terminated by ______________ .

Q. JavaScript code contain sequence of ___________.

Q. Which of the following statement is used to declare variable in JavaScript ?

Q. ____________ is used to assign value to the variable.

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 ?