JSFiddle - React, Tailwind, and code Playground

JavaScript

function Game() {
  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()

alert(window.create)