JSFiddle - React, Tailwind, and code Playground

by sprilukin

JavaScript

var obj = {
	prop1: 'test',
  	func1: function() {
			return this.prop1;
    }
}

var func2 = obj.func1;

console.log(obj.func1());
console.log(func2())