Been trying to convert the following to number:
1
var string = 123 (is string),
parseInt(parameter is string);
var string = '123'; var int= parseInt(string ); console.log(int); //Output will be 123.