2 JavaScript interview questions and answers

What Boolean operators does JavaScript support?
&&, || and !

What does "1"+2+4 evaluate to?
Since 1 is a string, everything is a string, so the result is 124.

No comments: