JSFiddle - React, Tailwind, and code Playground

by Emily Humphrey

JavaScript

var num = 0.1 + .02;
console.log(num)
console.log(num.toFixed(1))// 1 = the number beyond decimal point
console.log(parseFloat(num.toFixed(1)));
var lambString = "57 lazy lambs do bask in the sun.";
parseInt(lambString, 10);// best practice to include a radix(this 10), because old browsers suck.