how to convert a string in number code example
Example 1: convert string to number javascript
var myString = "869.99"
var myFloat = parseFloat(myString)
var myInt = parseInt(myString)
Example 2: how to change a string to number in javascript
let theInt = parseInt("5.90123"); //5
let theFloat = parseFloat("5.90123"); //5.90123