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

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