Lesson 38 of 49 beginner

Setup Your Toolkit

Get Your Coding Workshop Ready

Open interactive version (quiz + challenge)

Real-world analogy

Before a chef cooks, they set up their kitchen — knives sharpened, ingredients prepped, oven preheated. Before you code, you set up your toolkit — a code editor to write in, Node.js to run your code, and a terminal to give commands. Let's prep your coding kitchen!

What is it?

Your coding toolkit is the set of software tools you need to write and run code. The three essentials are: a code editor (VS Code) where you write your code, Node.js which lets you run JavaScript on your computer, and the terminal where you execute commands and run your programs.

Real-world relevance

Every professional developer uses these exact tools daily. VS Code is used at companies like Google, Facebook, and Netflix. Node.js powers backends at LinkedIn, Uber, and PayPal. Learning these tools isn't just practice — it's real-world professional setup!

Key points

Code example

// Step 1: Check if Node.js is installed
// Open your terminal and type:
// node -v        (shows Node version, e.g., v20.11.0)
// npm -v         (shows npm version, e.g., 10.2.0)

// Step 2: Create a project folder
// mkdir my-first-project
// cd my-first-project
// npm init -y    (creates package.json)

// Step 3: Create your first file (hello.js)
console.log("Hello from my first project!");
console.log("My name is [Your Name]");
console.log("Today I started learning to code!");

// Step 4: Run it!
// In the terminal, type:  node hello.js
// You should see:
// Hello from my first project!
// My name is [Your Name]
// Today I started learning to code!

// Bonus: Try some math!
console.log("2 + 2 =", 2 + 2);
console.log("10 * 5 =", 10 * 5);

Line-by-line walkthrough

  1. 1. Comment: Step 1 — checking your installation
  2. 2. Open your terminal app to type these commands
  3. 3. node -v prints your Node.js version to confirm it's installed
  4. 4. npm -v prints your npm version — npm comes bundled with Node.js
  5. 5.
  6. 6. Comment: Step 2 — setting up a project folder
  7. 7. mkdir creates a new folder called 'my-first-project'
  8. 8. cd moves you INTO that folder (like double-clicking a folder)
  9. 9. npm init -y creates a package.json — your project's configuration file
  10. 10.
  11. 11. Comment: Step 3 — writing your first JavaScript file
  12. 12. This line prints a greeting when the file runs
  13. 13. Replace [Your Name] with your actual name!
  14. 14. A motivational message to celebrate your start
  15. 15.
  16. 16. Comment: Step 4 — running your code
  17. 17. How to run the file from the terminal
  18. 18. Expected output line 1
  19. 19. Expected output line 2
  20. 20. Expected output line 3
  21. 21.
  22. 22. Comment: Bonus math examples
  23. 23. Prints '2 + 2 = 4' — the comma in console.log adds a space
  24. 24. Prints '10 * 5 = 50' — the * symbol means multiply

Spot the bug

// In terminal:
npm intit -y
node -version
console.log('Hello)
Need a hint?
Look at the spelling of the commands and check for matching quotes...
Show answer
Three bugs! 1) 'intit' should be 'init'. 2) '-version' should be '-v' or '--version'. 3) The string 'Hello is missing its closing quote — should be 'Hello'. Typos are the most common beginner bugs!

Explain like I'm 5

Imagine you want to build a birdhouse. You need a workbench (VS Code — where you work), a saw and hammer (Node.js — the tools that do the work), and your voice to tell your helper what to do (the terminal — where you give commands). Without setting up your workshop first, you can't build anything!

Fun fact

VS Code is actually built WITH JavaScript (using a framework called Electron). So the very tool you use to write JavaScript was itself written in JavaScript. It's JavaScript all the way down!

Hands-on challenge

Do it right now! 1) Download VS Code from code.visualstudio.com. 2) Download Node.js from nodejs.org (LTS version). 3) Open VS Code, open the terminal (Ctrl+`), type node -v to verify. 4) Create hello.js, write console.log("I did it!"), and run it with node hello.js!

More resources

Open interactive version (quiz + challenge) ← Back to course: Full-Stack Playbook