Created
March 30, 2020 18:54
-
-
Save cwefso/8464b04df1ae6b277c8d735d2e230b09 to your computer and use it in GitHub Desktop.
8 ball psuedocode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HTML | |
- Build out the elements of the page | |
- Title. | |
- Button to shake 8 ball | |
- Place for answers to display. | |
CSS | |
- Set background to black | |
- Style button. | |
- Style place where answers display | |
JS | |
- Create a function called ask. | |
- Create an array of possible answers called answers. | |
- When the function ask is called, generate a random index number. | |
- Return the string from the answer array that matches the random index number. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment