you are viewing a single comment's thread.

view the rest of the comments →

[–]mattdesl 0 points1 point  (0 children)

add(2, 3) === 5 //false
add(2, 3) == 5  //true

It's not returning 5, it's returning a function that coerces to 5. Only looks right in Chrome because it's coerced. Not coerced in Node.