smartmessage

a simple sample to output message based on mood using Combination of Constructor/Prototype Pattern and Dynamic Prototype Pattern

Usage no npm install needed!

<script type="module">
  import smartmessage from 'https://cdn.skypack.dev/smartmessage';
</script>

README

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!!!