DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
2+8 =
Submit