2
Reply

what is out put console.log(45+45+"10");

Ravi Patel

Ravi Patel

6y
793
2
Reply

    The calculation is performed from Left to Right that’s why we get

    console.log(45+45+”10”) as 9010
    console.log(“10”+45+45) as 104545

    That’s interesting behaviour!

    9010