πŸ“Š JavaScript
Q. What does the following return?
Code:
[] == ![];
  • (A) true
  • (B) false
  • (C) undefined
  • (D) TypeError
πŸ’¬ Discuss
βœ… Correct Answer: (A) true

Explanation: [] is truthy, ![] is false. [] == false is true due to coercion.

Explanation by: Chandani
[] is truthy, ![] is false. [] == false is true due to coercion.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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