Q. What is the result of this?

Code:
false == '0';
  • (A) true
  • (B) false
  • (C) undefined
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (A) true
Explanation: Loose equality allows coercion, and false == '0' is true.
Explanation by: Chandani
Loose equality allows coercion, and false == '0' is true.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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