What is the output of below code? function check_value() { alert("1"+2+4); }

Since 1 is in double quotation,so it will be treated as string,everything is a string over here,so the result will be 124.

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*