A. to Hide Non-usable line.
B. to Hide Non-usable Multiline Code
C. used for Documentation
D. All of these
What will be printed on the screen ? Var3 =100101010
During addition of two numbers , suppose one of the number is NaN then output of the following code will be ?
+Infinity in JS gets added with +Infinity then output of the code will be -
-Infinity in JS gets added with -Infinity then output of the code will be.
-Infinity in JS gets added with +Infinity then output of the code will be.
var str = "Str"; var num = 10; var output = str + num;
What will be the value of Variable 'output' ?
<html> <head> <title>A Simple Page</title> <script language="JavaScript"> <!-- var A = "Compile ", B = "Error"; C = A + B; alert(C); // --> </script> </head> <body></body> </html>
What will be printed ?
/* 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 ?