Q. What will this code print?

Code:
console.log(typeof undefined === typeof NULL);
  • (A) true
  • (B) false
  • (C) undefined
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (B) false
Explanation: NULL is not defined (uppercase), so the code throws a ReferenceError.
Explanation by: Chandani
NULL is not defined (uppercase), so the code throws a ReferenceError.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
79
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Chandani
Publisher
πŸ“ˆ
85%
Success Rate