Button Input, Console Output

Instructions:

  1. Open dev tools (Ctrl+Shift+I in Chrome)
  2. Click on the "Console" tab to observe the console
  3. Click the cat button
  4. Observe the console output
  5. Study the code to understand how this works