Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //class
- person = function(){
- var name = "Nitin";
- return { getName : function(){return name}} ;
- }
- var personOne = new person();
- console.log(personOne.getName());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement