πŸ“Š JavaScript
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

πŸ‘οΈ
56
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Chandani
Publisher
πŸ“ˆ
91%
Success Rate