Here’s the link to my GItHub with the project: GitHub - thaddeus0605/mixed_messges
I wanted to do something a little more involved that just a random message generator.
This script will:
-take in your first name
-capitalize it to account for different input methods
-saves the last name to a variable
-takes that and matches it to a fortune object with an array of 3 fortunes for each letter of the alphabet
-logs the fortunes to the console
I had to do some research to figure out how to get user input using NodeJs as using just a basic “prompt()” call was not working in Node.
You do need to have the ‘read-line sync’ package for node installed to get user input, before the program will ask you for your input.
Let me know what you all think!