- create an app that works like a magic 8 ball
- create an Object Array
- each object in the array will have a key value pair of a number, and an answer from 0 to 8- for example {1: "better luck next time!"}
- create a function called shakeEight
- within the function, create variable, outcomeShake
- have outcomeShake equal Math.Random() function and multiply that by eightBallOutcomes.length
- return eightballOutcomes[outcomeShake]
- close function
- ?????
- Profit!!!!
Last active
March 30, 2020 17:53
-
-
Save Leasw144/67a3920c471c5721e6a8d67e6b6850ba to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment