adplus-dvertising
frame-decoration

Question

Below Code contain one executive Statement. Guess the Output of the Code.
<script type="text/javascript">
    {
        document.Write("<h1>This is a heading</h1>");
    }
</script>

a.

"This is a heading" will be printed in H1 heading

b.

Just "This is a heading" will be printed because HTML tags are not allowed

c.

Will not print anything

d.

None of these

Posted under Web Technologies

Answer: (d).None of these

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Below Code contain one executive Statement. Guess the Output of the Code.

Similar Questions

Discover Related MCQs

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.

Q. We can declare all type of variables in JavaScript with the keyword _____________.