← Quiz: JavaScript Basics: all 9 questions
Quiz: JavaScript Basics · Question 2 of 9
What does this print? (code)
What does this print?
console.log(3 + 4 + "5");
- A.345
- B.75
- C.12
- D.7 5
Answer & explanation
Correct answer: 75
3 + 4 = 7 first (numbers), then "7" + "5" = "75".
Can you get the rest right without peeking?
Take the timed Quiz: JavaScript Basics quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →