Message generator

Quite simple project took me about half an hour to complete.
Would kindly appreciate feedback

Hello, and welcome to the forums!

You should test your program by calling the function you wrote and printing the results that it returns.

Example that you can put at the bottom:


The version of the script you posted needs some debugging in order to run. By calling the function you wrote and running the script with node, you will be able to see the error messages.