Skip to content

bejanbogdan93/mixed_messages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Random Messages

This command line random message generator is constructing a message based on the quote Keep Calm and Carry On.

Components

  • The 4 arrays.
  • The function that extracts a random element from an array.
  • The function that combine the 4 elements. Outputs a string.

Syntax

"Keep state and action pronoun object."

Array 1: (states)

  • calm
  • going
  • thinking
  • it real
  • protesting

Array 2: (actions)

  • graspkiss
  • gain
  • play
  • shake
  • feel
  • ring

Array 3: (pronouns)

  • your
  • he's
  • her

Array 4: (objects)

  • pop can, cars, locket, towel, bar of soap, card, chalk, house, tube of lip balm, can of chili, martini glass, grid paper, blowdryer, children's book, glasses, rolling pin, fish, teddies, spice bottle, pearl necklace, sheep, screw, belt, necktie, sponge, washing machine, game cartridge, extension cord, phone, roll of duct tape, vase, roll of masking tape, wooden spoon, sheet of paper, zebra, blouse, thermometer, toe ring, plush dinosaur, sharpie, wireless control, key, box of chalk, pocketknife, box of tissues, street lights, canvas, pair of dice, carton of ice cream, pair of sunglasses

To use it,

  1. Clone the code
  2. Run node main.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published