Q. What is the result of 2 + '2'?

  • (A) 22
  • (B) 4
  • (C) undefined
  • (D) NaN
πŸ’¬ Discuss
βœ… Correct Answer: (A) 22
Explanation: JavaScript converts 2 to a string and concatenates: '2' + '2'.
Explanation by: Mr. Dubey
JavaScript converts 2 to a string and concatenates: '2' + '2'.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
61
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
91%
Success Rate