We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

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>