Skip to content

Instantly share code, notes, and snippets.

@nware1066
Last active March 30, 2020 17:45
Show Gist options
  • Save nware1066/4b9cd17f9e98cc6441ae53c1d2781780 to your computer and use it in GitHub Desktop.
Save nware1066/4b9cd17f9e98cc6441ae53c1d2781780 to your computer and use it in GitHub Desktop.
pseudocode exercise for mod 1
  1. use css to create a round, black background shape
  2. centered in that shape, create a grey triangle with a box to display a string that will be returned
  3. above the circle, have a user input box that will accept text
  4. user input should be required
  5. the user input box should continue to display that text after the submit button is clicked
  6. create a submit button for the user input box
  7. create an array of at least 8 answers that are suitable for any question (could check actual magic 8 ball for suggestions)
  8. create a function that randomly selects an element from the array when the user input text field
  9. return the selected element from the array in the text box within the black circle
  10. create an event listener that will invoke the function to select and return the array element into the display box within the 'ball' when the submit button is clicked
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment