Hacker News new | ask | show | jobs
by fdsfsafasfdas 3307 days ago
What is the error in 1+'1'? It seems like it would just be '11'.

Unless, of course, you're implying it converts javascript into a strongly typed language, which would be amazing.

1 comments

It keeps most of JS semantics, for better or worse :p

1 + '1' is authorized.

1 + [] is not.