Answers for "parse float javascript"

0

convert string to float javascript

//do do this use parseFloat()
//it turns a string into a float in js
//you can later use this for animation
var string = "10"
string = parseFloat(string)
console.log(string)
Posted by: Guest on March-13-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language