JSFiddle - React, Tailwind, and code Playground
by basarat
HTML
<style>
html, body {
width: 100%;
height: 100%;
font-family:'Lucida Console';
background: #575757;
color: white;
margin: 0px;
overflow-y: hidden;
}
#console {
width: 95%;
height:90%;
padding: 10px;
overflow-y: auto;
}
#console div {
margin-top: 5px;
}
</style>
<div id="console"></div>
<script>
var panel = document.querySelector("#console");
var print = function(m) {
var newline = document.createElement("div");
newline.innerHTML = "> " + JSON.stringify(m);
this.panel.appendChild(newline);
};
</script>
JavaScript
function func(){}
var arr = [];
var str = '';
var bool = true;
var num = 123;
print(func.__proto__ == Function.prototype);
print(arr.__proto__ == Array.prototype);
print(str.__proto__ == String.prototype);
print(bool.__proto__ == Boolean.prototype);
print(num.__proto__ == Number.prototype);