JSFiddle - React, Tailwind, and code Playground

JavaScript

var y = {}

y.secondFunction = function () {
	console.log("second called")
  this.thirfFunction();
};

y.firstFunction = function () {
	console.log("first called")
  this.secondFunction();
};
y.firstFunction();

y.thirdFunction = function () {
	console.log("third called")
};