JSFiddle - React, Tailwind, and code Playground

HTML

<div id="one">foo</div>
<div id="two">boo</div>
<div id="three">blb</div>

JavaScript

function ObjectOne(value) {
    var myVal = value;
}

function ObjectTwo(val) {
    this.val = val;
}

$("#one").html("one: "+new ObjectOne("brb").myVal);
$("#two").html("two: "+new ObjectTwo("how").val);

test = {
    myTest: "Haha",
}
$("#three").html("three: "+test.myTest);