STEP 2: Let's change the prompt in the .ask() command to let the user know what choices they can make.

This text will appear in the popup where the user types their answer. Whatever the user enters will be stored in the input variable choice.

  • Change the string in the .ask() command to "Choose rock, paper, or scissors."
  • Click Submit and Next to continue.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)