//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)