Using the Console (Developer Tools)
What is the Console?
The console is a special tool in your browser where you can run JavaScript, see errors, and test code instantly!
How to Open the Console
- Press F12 or Ctrl+Shift+I (Windows/Linux)
- Press Cmd+Option+I (Mac)
- Click the Console tab
Fun with Console
Copy to Clipboard
console.log()
: Print messagesconsole.error()
: Show errorsconsole.warn()
: Show warnings
Tip: Use the console to test code before adding it to your website!