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

function Rabbit(adjective) {
    this.adjective = adjective;
    this.speak = function(line) {
        print("The ", this.adjective, " rabbit says '", line, "'");
    };
}

function doAction() {
    var killerRabbit = new Rabbit("killer");
    killerRabbit.speak("GRAAAAAAAAAH!");
    var proRab = killerRabbit.prototype;
    var constrRab = killerRabbit.constructor;
    var x = 1;
}