Question PRG-JS-0022
EasyWhat is the output of this program?
console.log("5" + 3);
- A.
8
- B.
53
- C.
Show answer and explanation
Answer: B
If either operand of + is a string, the other is converted and the two are joined.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
JavaScript question
What is the output of this program?
console.log("5" + 3);
8
53
Answer: B
If either operand of + is a string, the other is converted and the two are joined.
5 3
Error