Expert Developer JavaScript Question:

Download Job Interview Questions and Answers PDF

What would be the result of 3+2+"7″?

Expert JavaScript Developer Interview Question
Expert JavaScript Developer Interview Question

Answer:

Since 3 and 2 are integers, they will be added numerically. And since 7 is a string, its concatenation will be done. So the result would be 57.

Download Expert JavaScript Developer Interview Questions And Answers PDF

Previous QuestionNext Question
What is === operator in JavaScript?What is an undefined value in JavaScript?