πŸ“Š JavaScript
Q. What will be the output of this code?
Code:
console.log(1 == '1');
  • (A) false
  • (B) true
  • (C) undefined
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (B) true

Explanation: == performs type coercion, so 1 == '1' is true.

Explanation by: Chandani
== performs type coercion, so 1 == '1' is true.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
48
Total Visits
πŸ“½οΈ
11 mo ago
Published
πŸŽ–οΈ
Chandani
Publisher
πŸ“ˆ
92%
Success Rate