re: JavaScript Quiz VIEW POST

VIEW FULL DISCUSSION

Got 3. and 5. wrong, haha.

I supposed that the first operand would decide which implementation of + would be used, but I guess the rule is: string wins :D

[deleted]

Both convert the number to string and do a string concatination, even in one the number is the first operand and in the other the string is the first operand.

[deleted]

Ah, yes.

I was talking about 3 and 5 :D

Oh i thought it was 5 and 6.
yeah 3 and 5 are Strings😁

code of conduct - report abuse