###The Ultimate Life Decider Never make a decision again!
####Part One a. - The Coin of Inevitability
- Create a file called
decider.js - Write a function called
coinFlipthat 'console.logs'HEADSorTAILSwhen called - Add a counter that declares
WINNERin the console when either HEADS or TAILS is flipped 5 times.
#####Part One b. - The Coin App
- Create a file called
decider.html - Find any coin image online
- Link the
.jsfile, while you're there you may also decide to add a.cssfile for some styling - Now add the necessary components to the
decider.htmlfile so that when the coin image is clicked thecoinFlipfunction result and tally are returned somewhere on the page.
#####Part Two a. - A Second Opinion
- Create a file called
buckStopsHere.js - Make a
JSfunction that randomly returns one of the following strings to the console when called...
"No", "Not today", "It is decidedly so", "Without a doubt", "Yes definitely", "You may rely on it", "As I see it yes", "Most likely", "Outlook good", "Signs point to yes", "Reply hazy try again", "Ask again later", "Better not tell you now", "Cannot predict now", "Concentrate and ask again", "Don't count on it", "My reply is no", "My sources say no", "Outlook not so good", "Very doubtful",
#####Part Two b. Opinion App
- Make an
.htmlfile to display the output of thebuckStopsHere.jsfile- add some styling and maybe an image of an eight ball for novelties sake.
- Now link the first
decider.htmlfile to this file with a link called 'Need a Second opinion?' so that if the coin flip isn't enough a user can use the magic 8 Ball to settle it once an for all!
####Part Three - Make it move
Add in a flip coin animation and output delay Add in an eight ball animation output delay
Start making life changing decisions.