Answers for "javascript string to dou"

2

javascript string to dou

var string = "10";
var double = parseFloat(string);
console.log(typeof(double)); // float
// parseFloat used for float and double datatypes
Posted by: Guest on June-19-2021

Code answers related to "javascript string to dou"

Code answers related to "Javascript"

Browse Popular Code Answers by Language