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