Basic JavaScript Question:
Download Questions PDF

How about 2+5+"8"?

Answer:

Since 2 and 5 are integers, this is number arithmetic, since 8 is a string, it’s concatenation, so 78 is the result.

Download JavaScript Interview Questions And Answers PDF

Previous QuestionNext Question
What Web sites do you feel use JavaScript most effectively (i.e., best-in-class examples)? The worst?What is the difference between SessionState and ViewState?