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' ?
<title>A Simple Page</title>
var A = "Compile ",
B = "Error";
C = A + B;
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("<h1>This is a heading</h1>");
document.write("<p>This is a paragraph.</p>");
document.write("<p>This is another paragraph.</p>");
HTML Tags are allowed inside JS. Is this error free code ?