Question PRG-JS-0004
EasyWhat is the output of this program?
console.log('5' === 5);
- A.
undefined
- B.
true
- C.
Show answer and explanation
Answer: D
=== compares without type conversion: a string is never strictly equal to a number.
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);
undefined
true
Answer: D
=== compares without type conversion: a string is never strictly equal to a number.
Error
false