+1 vote
in JavaScript by
How About 2+5+"8"?

1 Answer

0 votes
by

Since 2 and 5 are integers, this is number arithmetic, since 8 is a string, it’s concatenation, so 78 is the result.

Related questions

+1 vote
asked Jan 31, 2020 in Other by MBarbieri
0 votes
asked Sep 20, 2021 in JavaScript by sharadyadav1986
...