JSFiddle - React, Tailwind, and code Playground

JavaScript

function Owner()
{
   var self= this;
     this.size = 150;
     this.writers = [];

function Writers()
{

    var Alice= function()
    {

        var that=this;
        that.name="alice";
        that.operate = function()
        {
            console.log( "Alice says: "+self.size );   
        }
    }
    this.alice=new Alice();
}
    
    var getO = function(){
    var writers = new Writers();
     this.writers.push( writers.alice );
      this.writers[0].operate();
       }
    return getO
}

var o = Owner();
o();