JSFiddle - React, Tailwind, and code Playground

by rvaldez

HTML

<script src="https://getfirebug.com/firebug-lite-debug.js"></script>
<!-- disregard this pane, html is shown in the "result" pane -->






































































<p>JavaScript code is executed on page load. Click the "Run" button in the top bar to re-run the JavaScript code. Output is logged to the <a href="http://getfirebug.com/firebuglite" target="_blank">Firebug Lite</a> console below &darr;.</p>

JavaScript

var obj = new Object();
obj.greeting = 'hello'
obj.living = true;
obj.age = 33;
obj.gender = 'male';
obj.getGender = function() {
    return obj.gender;
};

console.log(obj.getGender()); // logs 'male'
console.log(obj.greeting);
console.log(isNaN(obj.age));