Alex Alekseichuk We remember school Math. quiz: 1) 2 + 2 / 2 = ? And now there is another one from `JavaScript Wizardy Quiz`: 2) "2" + "2" - "2" = ? Try to guess first, then look into the comments. P.S. I can't put the comment to myself. So, 1) 2 + 2 / 2 = 2 + 1= 3 We should divide first. 2) "2" + "2" - "2" = "22" - "2" = 22 - 2 = 20 First operation "2" + " 2" means string concatenation. And the second one is numeric substruction.
··· 4y, 17w reply ¬
Login or register your account to reply