4. Choosing the right tools
4.1 Code Editor
The best tools for you will depend on your individual needs and preferences. If you are just starting out, we recommend using a popular code editor like Visual Studio Code or Sublime Text. These editors are easy to use and have a lot of features that will be helpful for beginners.
If you are planning on doing more advanced JavaScript development, you may want to consider using a more powerful IDE like WebStorm. IDEs offer a wider range of features and tools than code editors, but they can be more complex to learn.
4.2 Interpreter
The interpreter is a program that checks your JavaScript code for errors and then executes it. The interpreter you use will depend on the platform you are writing your software for. If you are writing a server-side application, you will need to install the Node.js environment. If you are writing a client-side application, you can use the JavaScript interpreter built into your web browser.
This course is about core JavaScript, which means that the language elements you learn will be useful in all environments. The easiest way to practice core JavaScript is to use a web browser. Chrome and Firefox are two popular browsers with built-in JavaScript interpreters. They are both efficient and have tools that are helpful for web developers.
4.3 Debugger
Computer programs can be very complex and have thousands or even millions of lines of code. It is impossible to write code without any errors. Some errors can only be found when the program is running, and it can be hard to find out what is happening inside a program that runs very fast.
A debugger is a tool that allows you to slow down or even halt the execution of a program, run instructions step by step, and look at and analyze the state of the program at any given moment.
All modern browsers have developer tools that include a debugger. To enable the developer tools, you can use the following keyboard shortcuts:
- Windows and Linux operating systems, all common browsers except Internet Explorer and Edge:
Ctrl+Shift+I
- Windows operating system, Internet Explorer and Edge:
F12
- macOS operating system, all common browsers:
Cmd+Option+I
In the upcoming section, we will learn more about the debugger and how to use it to find and fix errors in our code.
In the meantime, make sure that you have installed the necessary tools and that you can start them up. If you are not sure what tools to use, we recommend using the local environment with Visual Studio Code (code editor) and Chrome (web browser with JavaScript interpreter and debugger).