JSFiddle - React, Tailwind, and code Playground

HTML

<div id="out"></div>

JavaScript

function printValue(val) {
    var outVal = val | 0;
    $('#out').append("outval: " + outVal + " of '" + val + "' of type " + typeof(val) + "<br>");
}

printValue(17);
printValue(3.5);
printValue("test");