Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

creating different objects in node.js

function Person(name) {
    return {
        sayHello: function () { alert('My name is: ' + name); }
    };
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #creating #objects
ADD COMMENT
Topic
Name
2+8 =