parseFloat("10");
parseFloat("10.33");
parseFloat("10 20 30");
parseFloat("10 years");
parseFloat("years 10");
var f = "123.345";
console.log(parseFloat(f))
/*will console.log 123.345*/
console.log(typeof parseFloat(f));
/*will console.log number*/