See Code
Home
Button Input, Console Output
Cats
Instructions:
Open dev tools (Ctrl+Shift+I in Chrome)
Click on the "Console" tab to observe the console
Click the cat button
Observe the console output
Study the code to understand how this works