let x = 2 + 3 + “5”;

this equation results in “55”

but

let x = “5” + 2 + 3;

this results in “523”

we have not performed any data type changes if in 2nd equation data type changes in string than why is not changed in first one?

Course: Introduction to JavaScript: First Steps - Free Interactive Course

Lesson: Introduction - Just Get Started - Introduction to JavaScript: First Steps