JSFiddle - React, Tailwind, and code Playground

by dhoerster

HTML

Type basics
<br/><hr/>

<ul></ul>

JavaScript

var x = 3, x1 = "3",
    y = "hello", y1,
    z = false, z1,
    zero = 0,
    theUL = $('ul');


theUL.append('<li>typeof x :: ' + (typeof x) + '</li>'); //number
theUL.append('<li>typeof y :: ' + (typeof y) + '</li>'); //string
theUL.append('<li>typeof z :: ' + (typeof z) + '</li>'); //boolean

theUL.append('<li>typeof null :: ' + (typeof null) + '</li>'); //number
theUL.append('<li>typeof undefined :: ' + (typeof undefined) + '</li>'); //number
theUL.append('<li>typeof NaN :: ' + (typeof NaN) + '</li>'); //number