What is divide by 0 in Javascript?
var a = 10; var b = 0; document.write(a/b);
Nothing is printed
0 is printed
Infinity is printed
Some Garbage Value
Correct Answer : C
What is the output of following Javascript?
var a = 'java'; var b = 'script'; var c = a/b; document.write(c);
What does javascript use instead of == and !=?
The snippet that has to be used to check if “a” is not equal to “null” is