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

Why javascript is fast?

468


Entire content of a JavaScript source file in a function block?

559


Explain few difference between null, undefined or undeclared javascript variable?

488


What is the difference between Local Storage and Session Storage?

542


How to get the primitive value of a string in Javascript?

530






How do we get javascript onto a web page?

479


What is enum in javascript?

599


Why is javascript good for websites?

462


How long does it take to learn coding?

579


What is the use of a number object in javascript?

526


What is data types in javascript?

493


Explain the difference between java and javascript.

501


Which built-in method returns the length of the string?

527


How Can I get facebook fans/likes?

1470


How to define a named function in JavScript?

539