🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: JavaScript Basics: all 9 questions

Quiz: JavaScript Basics · Question 1 of 9

What does this print? (code)

What does this print?

console.log("3" + 4 + 5);
  1. A.12
  2. B.345
  3. C.39
  4. D.75
Answer & explanation

Correct answer: 345

"3" + 4 gives "34", then + 5 gives "345".

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 →