JSFiddle - React, Tailwind, and code Playground
JavaScript
var Main = function() {
this.object1 = {};
this.object1.prop = 5;
this.object2 = {};
this.object2.write = function() {
//вывести свойство prop объекта object1
}
}
var main = new Main();