Java Script MCQ Set Paper 3
Java Script MCQ Set Paper 3
[Marks]1
[Negative Marks]0
Q.18) What is the difference between the "==" and "===" operators
in JavaScript?
[a] Both operators are identical
[b] "==" compares only the values, while "===" compares both
the values and types *
[c] "==" compares only the types, while "===" compares both
the values and types
[d] "==" is used for arithmetic operations, while "===" is
used for logical operations
[a] "21"
[b] 21
[c] 22
[d] 23*
console.log(typeof null);
[a] "null"
[b] "object" *
[c] "undefined"
[d] "boolean"