JSFiddle - React, Tailwind, and code Playground

by rahulshivsharan

HTML

<html>
    <head>
        <title>Javascript Practise</title>        
    </head>
    <body></body>
</html>

JavaScript

(function(){
    var personProto = function(){
        describe : function(){
            return "Person called is "+this.name;
        }        
    }
    
    var jane = function(){
        name : "JANE",
        __proto__ :  personProto    
    }
    
    var tarzan = function(){
        name : "TARZAN",
        __proto__ : personProto     
    }
    
    alert(jane.describe());
    alert(tarzan.describe());
})();