ToNumber

Let str = "123";
alert(typeof str); // string
let num = Number(str); // becomes a number 123
alert(typeof num); // number

Numeric conversion happens in mathematical functions and expressions automatically.

ToNumber — Structure map

Clickable & Draggable!

ToNumber — Related pages: