in javascript how to change string to a number and able to do math code example
Example 1: convert a string to number in javascript
var x = Number("1000")
Example 2: javascript to number
parseInt("1")
var x = Number("1000")
parseInt("1")