JSFiddle - React, Tailwind, and code Playground
JavaScript
var testObject = {
val1: 1,
testing: function() {
val1 = 2;
alert( val1 );
}
};
testObject.testing();
var testObject = {
val1: 1,
testing: function() {
val1 = 2;
alert( val1 );
}
};
testObject.testing();