JSFiddle - React, Tailwind, and code Playground

by Jeremy Bolanos

HTML

<div id="container" />

JavaScript

function myClosure(name, age, gender) {
    this.name = name;
    this.age = age;
    this.gender = gender;
    
    var table = document.createElement('table');
    
    function showProfile(){
        var tr = document.createElement('tr');
        var td = document.createElement('td');
        td.appendChild(document.createTextNode(this.name));
    }
    var step1 = document.createElement('div');
    step1.className = "step";
    step1.id = "step1";
    document.getElementById('container').appendChild(step1);

}

/** RUN myClosure **/
myClosure('Bob', '35', 'male');