Q. Which one will return 'true'?

Code:
console.log([] == ![]);
  • (A) true
  • (B) false
  • (C) undefined
  • (D) NaN
πŸ’¬ Discuss
βœ… Correct Answer: (A) true
Explanation: [] is truthy, so ![] is false. [] == false evaluates to true due to coercion.
Explanation by: Chandani
[] is truthy, so ![] is false. [] == false evaluates to true due to coercion.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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