JSFiddle - React, Tailwind, and code Playground
by LuckyCat
JavaScript
function getDecimal(num) {
return num % 1;
}
//alert( getDecimal(6.25) );
/*
alert("" + 1 + 0);
alert("" - 1 + 0);
alert(true + false);
alert(6 / "3");
alert("2" * "3");
alert(4 + 5 + "px");
alert("$" + 4 + 5);
alert("4" - 2);
alert("4px" - 2);
alert(7 / 0);
alert(parseInt("09"));
alert(" -9\n" + 5);
alert(" -9\n" - 5);
alert(5 && 2);
alert(2 && 5);
alert(5 || 0);
alert(0 || 5);
alert(null + 1);
alert(undefined + 1);*/