JSFiddle - React, Tailwind, and code Playground

by Kriem

HTML

<div id="world"></div>

CSS

body, html { height: 100% }

#world 
{
    background: #ececec;
    height: 100%;
}

JavaScript

$(function(){
    
    var $world  = $('#world');
    
    function Cube(){
        
        this.position = {
         
            x:0,
            y:0
        }
        
        
    }
    
    var cube = new Cube();
    
    console.log(cube);
});