let x = "5000.25";
let num = parseFloat(x);
document.write(num);
document.write("<br>");
document.write(typeof num);

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.