JavaScript Interview Questions and Answers
Question: How about 2+5+"8"?Answer: Since 2 and 5 are integers, this is number arithmetic, since 8 is a string, it's concatenation, so 78 is the result. |
Is it helpful?
Yes
No
Most helpful rated by users:
- What are JavaScript data types?
- What\'s relationship between JavaScript and ECMAScript?
- What does isNaN function do?
- How do you convert numbers between different bases in JavaScript?
- What is negative infinity?