Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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)
Source by flexiple.com #
 
PREVIOUS NEXT
Tagged: #convert #string #float #javascript
ADD COMMENT
Topic
Name
4+3 =