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

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