JSFiddle - React, Tailwind, and code Playground

by SSRRDD

JavaScript

'use strict';
var Obj = 
{
  k1: 'value1',
  nO1:
  {
  	k2: 'value2',
    parent2: this,
    nO2:
    {
      k3: 'value3',
	    parent3: this,
      nM3: function()
      {
      	console.log(this.k3);
      	console.log(this.parent3);
      }
    },
    nM2: function()
    {
  		console.log(this.k2);
    }    
  },
  nM1: function()
  {
  	console.log(this.k1);
  }
};

Obj.nO1.nO2.nM3();