Question PRG-JS-0003
EasyWhat is the output of this program?
console.log('5' == 5);
- A.
true
- B.
undefined
- C.
Show answer and explanation
Answer: A
== converts types before comparing, so '5' == 5 is true.
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' == 5);
true
undefined
Answer: A
== converts types before comparing, so '5' == 5 is true.
false
Error