JSFiddle - React, Tailwind, and code Playground
by karin
HTML
<p id="demo"></p>
<p id="demo2"></p>
JavaScript
function Person(hc,ec,s,w,h){
this.haircolor=hc;
this.eyecolor=ec;
this.sex=s;
this.heigth=h;
this.weight=w;
this.bmi=w/(h*h);
}
document.getElementById('demo').innerHTML=new Person(null,null,null,50,1.62).bmi;
document.getElementById('demo2').innerHTML=Math.pow(2, 3);