Full Stack JS

Chapter 0
0%

Chapter 0: Getting Started

What is programming? Let's set up your computer and write your very first code.

What is Programming?
Full Stack
First JavaScript
First HTML
Quiz

What is Programming?

You give instructions to people every day: "Go straight, turn left, stop at the bakery." Programming is the same thing — but you're giving instructions to a computer instead of a person. The only difference? You write them in a programming language (like JavaScript) instead of English.

A program is just a list of instructions. Here's what a simple program looks like in plain English vs JavaScript:

Plain EnglishJavaScript Code
Show the text "Hello!"console.log("Hello!")
Remember that the user's age is 25let age = 25
If age is 18 or more, show "You can vote"if (age >= 18) { console.log("You can vote") }

Don't worry about understanding the code yet — you'll learn all of this step by step!

What is Full Stack?

Think of a website like a restaurant:

🍽️ Frontend = The dining area (what customers see — tables, menu, decor)
👨‍🍳 Backend = The kitchen (where food is prepared — customers don't see this)
📦 Database = The pantry (where ingredients are stored)

Full Stack means you learn to build ALL three parts.

Our Tools (Tech Stack)

PartToolWhat it Does
FrontendHTMLStructure of pages (the skeleton)
FrontendCSSStyling (the skin, clothes, colors)
FrontendJavaScriptInteractivity (the brain)
FrontendReactA tool for building UIs faster
BackendNode.jsJavaScript running on a server
BackendExpressMakes building servers easier
DatabasePostgreSQLStores your data in organized tables
DatabaseSequelizeTalk to the database using JavaScript

Your First JavaScript Code!

console.log() is how you print messages in JavaScript. It's like saying "Computer, show this on screen!" Try it below — edit the code and click Run:

🎯 Try It Yourself!

  1. Read the code below
  2. Click the green ▶ Run button to see the output
  3. Change "Hello, World!" to your own name
  4. Click Run again to see YOUR message
  5. Try adding a new line: console.log(2 + 2);
JavaScript — Press Ctrl+Enter to run
console.log() is the #1 most used command in JavaScript. You'll use it thousands of times to check what your code is doing. Think of it as a "peek inside" tool.

Let's Try More!

JavaScript can do math, store information, and make decisions. Try running this:

JavaScript — Variables & Math

🎯 Challenge!

  1. Change myName to YOUR name
  2. Change myAge to YOUR age
  3. Run the code — does it say you can vote?
  4. Try setting age to 15 — what happens?

Your First HTML Page!

HTML is the language that creates the structure of web pages. Every website you've ever visited is built with HTML. Let's try it live!

If a web page is a house, HTML = the walls, rooms, doors, windows (the structure). CSS = the paint, furniture, decoration (the looks). JavaScript = the electricity, plumbing, smart home (the behavior).

🎯 Try It Yourself!

  1. Read the HTML code below
  2. Click ▶ Run to see the web page appear in the preview
  3. Change the text inside <h1>...</h1> to your own title
  4. Add a new paragraph: <p>I love coding!</p>
  5. Click Run again to see your changes
HTML — Edit and click Run to preview

What Each Tag Does

TagWhat It DoesAnalogy
<h1>Big heading (title)The sign on top of a shop
<p>Paragraph of textA page in a book
<ul>Unordered list (bullet points)A shopping list
<li>One item in a listOne item on the shopping list
<button>A clickable buttonA doorbell
Every opening tag like <h1> needs a closing tag </h1> (notice the /). Forgetting the closing tag is the #1 beginner mistake!

📝 Chapter 0 Quiz

Let's test what you learned! Select an answer for each question and click "Check Answers".

1. How do you print a message in JavaScript?

print("Hello")
console.log("Hello")
echo("Hello")
display("Hello")

2. What is the "frontend" of a website?

The database
The server
What users see in the browser
The code editor

3. Which language controls how a website LOOKS (colors, fonts, spacing)?

HTML
CSS
JavaScript
React

4. What does let age = 25; do?

Creates a variable named "age" with value 25
Prints the number 25
Checks if age equals 25
Deletes the age value

5. What is the closing tag for <h1>?

<h1/>
<h1>
</h1>
<close h1>
← Home Chapter 1: HTML →