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 do I use an external javascript file?

512


What is the difference between remove() and removeChild()?

504


What are math constants and functions using javascript?

488


Is Javascript a Functional Programming Language?

662


Can you explain about screen object?

552






List some data types supported by javascript?

535


What is use of settimeout function in javascript?

517


What is encodeuri() function?

550


How do I start a javascript project?

469


What kind of conditional statements does JavaScript support?

523


If 2 methods have same name and same number of parameters, which one will be executed first?

517


What is difference between undefined variable and undeclared variable?

501


Where can I learn javascript for free?

502


What is 'use strict'?

519


What is arguments object in JavaScript?

564