JSFiddle - React, Tailwind, and code Playground

JavaScript

function Game() {
        console.log(this);
        this.name = 'Not probably a game.';
        this.create = function() {
                alert('Show must go on.');
        }
        this.player = new Player(this);
}
 
function Player(game) {
        alert(game.name);
        game.create();
}

new Game();