JSFiddle - React, Tailwind, and code Playground
by Bharat Soni
JavaScript
var human = function(name){
var that = {};
that.name = name;
that.age = '';
that.gender = '';
that.say = function(){
alert(that.name+" is "+that.age+" years old and he is "+that.gender);};
};
var male = function(name){
var that = human(name);
that.gender = "male";
return that;
};
var soni = male("bharat soni");