How about 2+5+"8"?
Submitted by: AdministratorSince 2 and 5 are integers, this is number arithmetic, since 8 is a string, it's concatenation, so 78 is the result.
Submitted by: Administrator
Submitted by: Administrator
Read Online JavaScript Job Interview Questions And Answers
Top JavaScript Questions
☺ | How to convert a string to a number using JavaScript? |
☺ | What is a prompt box? |
☺ | What looping structures are there in JavaScript? |
☺ | How do you convert numbers between different bases in JavaScript? |
☺ | How to change style on an element? |
Top Top World Wide Web Categories
☺ | Cascading Style Sheet CSS Interview Questions. |
☺ | HTML5 Interview Questions. |
☺ | Basic Internet Interview Questions. |
☺ | Domain Name System (DNS) Interview Questions. |
☺ | JavaScript Interview Questions. |