how to convert var to number in javascript code example Example: string to number js let myNumber = Number("5.25"); //5.25