# The JavaScript Developer Tools

---

%[https://youtu.be/Ydg8aRuEHg8]

---

Errors in the browser are not visible to developers. But there's one specific tool that developers use to debug Javascript errors called the **console**.

### How to Open the Console

![developer-tool.gif](https://cdn.hashnode.com/res/hashnode/image/upload/v1610663746300/fJVVhZYJp.gif)

To open a ready-made developer environment or console, use either of the following keyboard shortcuts.

- <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>I</kbd> (Chrome and Firefox)
- <kbd>F12</kbd> (Chrome and Firefox)
- <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>J</kbd> (Chrome)
- <kbd>Cmd</kbd> + <kbd>Opt</kbd> + <kbd>J</kbd> for Mac (Chrome)
- <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>K</kbd> (Firefox)
- <kbd>Cmd</kbd> + <kbd>Opt</kbd> + <kbd>K</kbd> for Mac (Firefox)
- Preference - Advanced - click the check box at the bottom (Show Developer menu in menu bar) - <kbd>Cmd</kbd> + <kbd>Opt</kbd>+ <kbd>C</kbd> for Mac (Safari)

> To insert multiple lines on the console, press <kbd>Shift</kbd> + <kbd>Enter</kbd>. And click <kbd>Enter</kbd> to execute the code.

Besides the tedious entering of the <kbd>Shift</kbd> + <kbd>Enter</kbd> keyboard shortcut to escape a new line, whenever a variable, function. was declared from a previous program, it gets cached in the browser console. This means anytime the same declared variable is used (even after clearing the console <kbd>Ctrl</kbd> + <kbd>L</kbd>), an error message is printed out in the console (except the browser is refreshed <kbd>Ctrl</kbd> + <kbd>R</kbd>). 

These issues are prevented by making use of a reliable text editor like [Visual Studio Code](https://code.visualstudio.com/download).

**Happy Coding!!!**

---
[![Buy me a Coffee](https://res.cloudinary.com/bizstak/image/upload/v1610317510/ko-fi-trans_fr3su4.png)](https://www.buymeacoffee.com/techstackmedia)

---
### TechStack | Bluehost
- Get a website with a free domain name for 1st year and a free **SSL** certificate.
- 1-click WordPress install and 24/7 support.
- Starting at $3.95/month.
-  30-Day Money-Back Guarantee.

<a href="https://www.bluehost.com/track/belloosagienoah/" target="_blank"> <img border="0" src="https://bluehost-cdn.com/media/partner/images/belloosagienoah/430x288/430x288PW.png"> </a> 
