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

Answer Posted / hk

Anything which follows string is converted to String.
Hence, "1" is string, and the digits 2 and 4 which comes
after this, also become part of string only.

So the answer is 124

Is This Answer Correct ?    70 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to hide alphabets in java as password '*'

1688


Is client side front end?

460


What is a closure javascript? Explain

482


How do you submit a form using JavaScript?

500


What are limitations in javascript?

456






What is an onclick?

515


How do we add javascript onto a web page?

522


Can an anonymous function be assigned to a variable?

512


Create an array in javascript with a list of 4 colors, assign that array to the variable, ‘colors’.

444


Is javascript free to use?

495


How to disable an html object ?

555


What is enum in javascript?

599


What are the Non-primitive data types in JavaScript?

545


What is the difference between an Anonymous Function and a named function?

519


Explain the term closure?

565