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 count the number of element in an array using javascript?

556


How do you trim in javascript?

497


How to convert “20” to number in javascript?

513


What is the data type of variables of in javascript?

495


What is the difference between local storage & session storage?

479






Do I need var in javascript?

487


What is an object in javascript, give an example?

521


What is lazy loading in javascript?

465


What is the use of isNaN function?

550


Is javascript free to use?

497


How to enabled 'Strict' mode in JavaScript?

581


Is javascript the future?

505


Do I need javascript enabled?

478


What is the role of javascript in a web page?

476


Difference between Client side JavaScript and Server side JavaScript?

566