Skip to content

Instantly share code, notes, and snippets.

@cwefso
Created March 30, 2020 18:54
Show Gist options
  • Save cwefso/8464b04df1ae6b277c8d735d2e230b09 to your computer and use it in GitHub Desktop.
Save cwefso/8464b04df1ae6b277c8d735d2e230b09 to your computer and use it in GitHub Desktop.
8 ball psuedocode
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