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
JS is case sensitive. "W" should be in lower case.
<script type="text/javascript"> // document.write("<h1>Heading</h1>"); document.write("<p>Google</p>"); document.write("<p>Yahoo</p>"); </script>
Which of the statement will be neglected by Browser ?
JavaScript is a _______________ language
The output for the following code snippet would most appropriately be
var a=5 , b=1 var obj = { a : 10 } with(obj) { alert(b) }
A conditional expression is also called a
Which is a more efficient code snippet ?
Code 1 :
for(var num=10;num>=1;num--) { document.writeln(num); }
Code 2 :
var num=10; while(num>=1) { document.writeln(num); num++; }
A statement block is a
When an empty statement is encountered, a JavaScript interpreter
The “var” and “function” are
Consider the following statements
switch(expression) { statements }
In the above switch syntax, the expression is compared with the case labels using which of the following operator(s) ?
var count = 0; while (count < 10) { console.log(count); count++; }
In the above code snippet, what happens?