JSFiddle - React, Tailwind, and code Playground

by VtoCorleone

JavaScript

var Person = (function(){
   var name = 'brian'; 
    
    return {
        FullName: function(){
             return name;   
        }
    }
});

console.log(name)
console.log(Person().FullName());