JSFiddle - React, Tailwind, and code Playground
by BrownieBoy
HTML
<input type="button" onclick="doAction();" value="doAction()"><br>
<br>
<br>
<input name="TestField" value="" id="TestField"></form>
JavaScript
var x = 10;
function doAction() {
var x = 10;
var o = {
x: 15
};
function f(message) {
console.log("this = " + this + ", this.x = " + this.x, "message = " + message );
}
f("one");
f.call(o, "two");
f.call(o, ["three"]);
f.apply(o, ["four"]);
f.call(o, {name: "five"});
}