eafish/HTML Interpreter

From Esolang
Jump to navigation Jump to search
Back to eafish
<h1>eafish interpeter</h1>
<p id="o"></p>
<button onclick="incr()">increment</button>
<button onclick="squa()">square</button>
<button onclick="outp()">output</button>

<script>
    whar=0
    function incr(){
        whar+=1
    }
    function squa(){
        whar=whar*whar
    }
    function outp(){
        document.getElementById("o").innerHTML = whar
    }
</script>