JSFiddle - React, Tailwind, and code Playground

by CME64

JavaScript

window.Test = ({
    attribute1:'This is',
    attribute2:'a test',
    function1: function(){
        alert(this.attribute1 + ' ' + this.attribute2);
    }
});

//TEST 1
Test.function1(); // "This is a test"

//TEST 2
var tester =  jQuery.extend(true,{}, Test);
tester.function1();