Since 2 and 5 are integers, this is number arithmetic, since 8 is a string, it’s concatenation, so 78 is the result.
Javascript
Topic: JS Operators
How about 2+5+"8"?
Browse random answers:
What does "1"+2+3 evaluate to?
How about 3+5+"8"?
What boolean operators does JavaScript support?
What is === operator ?
What is == operator?
What boolean operators does JavaScript support?
How about 2+5+"8"?
What does the delete operator do?
What’s the difference between:!!(obj1 && obj2);(obj1 && obj2);