JSFiddle - React, Tailwind, and code Playground
HTML
<div id="content">
</div>
JavaScript
function _printType(info){
var node = document.createElement("LI");
var textNode = document.createTextNode(info);
node.appendChild(textNode);
document.getElementById("content").appendChild(node);
}
var a= typeof{};
_printType("typeof {} is " + a);
var b =typeof[];
_printType("typeof [] is "+b);
var c =typeof new String("hello");
_printType("typeof new String('hello') is " +c)