+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 Nov 1, 2019 in Other by MBarbieri
0 votes
asked Dec 13, 2022 in Deep Learning by Robindeniel
...