JavaScript Roadmap — Day 2: Setting Up Your Development Environment
Setting Up Your Development Environment
Before writing JavaScript you need the right tools. A professional setup makes learning 10x faster, easier, and more enjoyable.
Imagine a chef trying to cook a professional meal with a broken knife, no cutting board, and a stove that randomly turns off. The recipe might be perfect — but the environment makes it impossible to execute properly.
Learning JavaScript with the wrong tools feels exactly like that. Today we set up your professional developer environment — the exact same tools used by developers at Google, Meta, and every top tech company in the world. Once this is done you will never need to change it.
1. The 4 Tools You Need
You only need four things. Each one has a specific job. Together they give you everything a professional JavaScript developer uses daily:
| Tool | Job | Free? | Download |
|---|---|---|---|
| VS Code | Write your code | ✅ Free | code.visualstudio.com |
| Node.js | Run JS outside browser | ✅ Free | nodejs.org |
| Chrome | Best browser for JS dev | ✅ Free | google.com/chrome |
| Live Server | Auto-refresh on save | ✅ Free | VS Code Extension |
💡 Why VS Code? It is free, open source, and used by over 70% of all developers worldwide. It has the best JavaScript support of any editor — with 30,000+ extensions. It is the industry standard.
2. Install VS Code — Step by Step
VS Code takes less than 3 minutes to install. Follow these exact steps:
3. The Best VS Code Extensions
Extensions turn VS Code from a basic text editor into a powerful JavaScript IDE. Install these five — they are used by almost every professional JavaScript developer:
| Extension | What it does | Priority |
|---|---|---|
| Live Server | Auto-refreshes browser when you save | Must Have |
| Prettier | Auto-formats your code to look clean | Must Have |
| ESLint | Catches errors before you run code | Must Have |
| ES6 Snippets | Type shortcuts to write code faster | Recommended |
| GitLens | See who changed what in your code | Optional |
4. Install Node.js — Run JS Anywhere
Node.js lets you run JavaScript outside the browser — directly in your terminal. This is how backend developers use JavaScript and how you will run practice files throughout this entire roadmap without needing to open a browser every time.
5. Chrome DevTools — Your Debug Superpower
Chrome DevTools is built into Chrome and it is the most powerful debugging tool available to JavaScript developers. Press F12 on any webpage to open it. You will use this every single day of your developer career:
| Tab | What It Does | You Will Use It For |
|---|---|---|
| Console | Run JS, see errors and logs | Every day — debugging and testing |
| Elements | See and edit HTML/CSS live | CSS and DOM work |
| Sources | Set breakpoints, step through code | Deep debugging |
| Network | See all API calls and responses | Fetch API and backend work |
| Performance | Profile speed and memory | Optimization work |
🔥 The Console is your best friend: Every time you see a red error message — do not panic. Read it carefully. It tells you exactly what went wrong and on which line. Red errors are not scary — they are helpful. Senior developers rely on them completely.
6. Your First JavaScript File
Now that everything is installed — let us write and run your first real JavaScript file. This is the exact workflow you will use every day for the rest of this roadmap:
7. Try It Yourself
Edit the code and click Run Code. Change your name, city and try different calculations.
8. Practice Tasks
Task 1 — Easy: Install Everything
Download and install VS Code, Node.js, and Chrome if you have not already. Open VS Code and install these 3 extensions: Live Server, Prettier, ESLint. Enable Auto Save. This is the foundation — do not skip it.
Task 2 — Medium: Run Your First File
Create a folder called js-roadmap on your Desktop. Inside it create day2.js. Write 5 console.log statements — your name, age, city, a calculation, and a fun fact about yourself. Run it with node day2.js in the terminal.
Task 3 — Hard: DevTools Exploration
Open Chrome → go to any website → press F12. In the Console tab type document.title and press Enter — you see the page title. Then type document.body.style.background = "red" — watch what happens. This is JavaScript running live in a real browser. This is exactly what you will be doing throughout this roadmap.