###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
coinFlip
that 'console.logs'HEADS
orTAILS
when called - Add a counter that declares
WINNER
in 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
.js
file, while you're there you may also decide to add a.css
file for some styling - Now add the necessary components to the
decider.html
file so that when the coin image is clicked thecoinFlip
function result and tally are returned somewhere on the page.
#####Part Two a. - A Second Opinion
- Create a file called
buckStopsHere.js
- Make a
JS
function 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
.html
file to display the output of thebuckStopsHere.js
file- add some styling and maybe an image of an eight ball for novelties sake.
- Now link the first
decider.html
file 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.