A. "Compile Error" will be printed
B. Nothing will be printed
C. None of these
/* This is Simple Comment */
This is the example of ____________ Comment.
What will be printed inside webpage ?
var message="Hello JS"; document.write(Message);
<script type="text/javascript"> { document.write("<h1>This is a heading</h1>"); document.write("<p>This is a paragraph.</p>"); document.write("<p>This is another paragraph.</p>"); } </script>
HTML Tags are allowed inside JS. Is this error free code ?
Following JS Code Consists of different Type of Statements -
<script type="text/javascript"> var i = 10; if (i < 10) { document.write("<h1>This is a heading</h1>"); document.write("<p>This is a paragraph.</p>"); document.write("<p>This is another paragraph.</p>"); } </script>
What are different Type of statements written inside above JS.
<script type="text/javascript"> { document.Write("<h1>This is a heading</h1>"); } </script>
Above Code contain one executive Statement. Guess the Output of the Above Code.
<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++; }