JSFiddle - React, Tailwind, and code Playground
HTML
<div id="result"></div>
JavaScript
var result_box=document.getElementById("result");
// start programming here
var b=1;
var a=2;
if(b<0) a=a+1;
else a=a-1;
// show the result
result_box.innerHTML="The result of your program: a="+a;