Skip to content

Latest commit

 

History

History
34 lines (15 loc) · 481 Bytes

README.md

File metadata and controls

34 lines (15 loc) · 481 Bytes

smartmessage

A simple sample to ouput message based on mood using Dynamic prototype Pattern and constructor/Prototype Pattern to create.

How to install

npm install smartmessage

Examples:

node test.js

Using the combination of constructor/Prototype pattern

Son,This is amazing!!! Man,I cannot stand this!! Karen,This is wonderful!!!

Using the Dynamic Prototype pattern

Son,This is amazing!!! Man,I cannot stand this!! Karen,This is wonderful!!!