What does "1"+2+4 evaluate to?

Answer Posted / shikha

answer is 124 as "1" in the starting is consider as a
string, therefore all other nos after that is consider as a
string unless brackets are not used.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to write comment in JavaScript?

976


Name the numeric constants representing max, min values?

515


What are classes in javascript?

478


What is screen object in JavaScript?

569


a code in vb script, which creates a table of 5*2 in html this is a static table, one more same dynamic table, as we give input the table should get created.

1091






Who introduced javascript?

490


How do you organize your JavaScript code?

595


Is html and javascript the same?

460


How to open a window with no toolbar, but with the location object?

468


What does "1"+2+3 evaluate to?

565


Is javascript free to use?

495


What is client side in javascript?

436


What is an example of javascript?

441


How long does it take to get good at javascript?

455


What is the role of javascript in a web page?

473