javascript string to dou

Solutions on MaxInterview for javascript string to dou by the best coders in the world

showing results for - "javascript string to dou"
Annabelle
18 Apr 2017
1var string = "10";
2var double = parseFloat(string);
3console.log(typeof(double)); // float
4// parseFloat used for float and double datatypes