JSFiddle - React, Tailwind, and code Playground
HTML
<pre id="res"></pre>
JavaScript
var types = {
'undefined': undefined,
'null': null,
'boolean': true,
'number': NaN,
'string': '',
'object': new Object()
}
var str = '\t\t| ';
for (var i in types) {
str += i + ' | ';
}
$('#res').append(str + '\n');
var a = 0;
for (var i in types) {
var b = 0;
var str = i + '\t\t| ';
for (var j in types) {
if (b < a)
continue;
str += (typeof (types[i] + types[j])) + ' | ';
}
$('#res').append(str + '\n');
}