What is programming? Let's set up your computer and write your very first code.
A program is just a list of instructions. Here's what a simple program looks like in plain English vs JavaScript:
| Plain English | JavaScript Code |
|---|---|
| Show the text "Hello!" | console.log("Hello!") |
| Remember that the user's age is 25 | let 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!
| Part | Tool | What it Does |
|---|---|---|
| Frontend | HTML | Structure of pages (the skeleton) |
| Frontend | CSS | Styling (the skin, clothes, colors) |
| Frontend | JavaScript | Interactivity (the brain) |
| Frontend | React | A tool for building UIs faster |
| Backend | Node.js | JavaScript running on a server |
| Backend | Express | Makes building servers easier |
| Database | PostgreSQL | Stores your data in organized tables |
| Database | Sequelize | Talk to the database using JavaScript |
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:
"Hello, World!" to your own nameconsole.log(2 + 2);JavaScript can do math, store information, and make decisions. Try running this:
myName to YOUR namemyAge to YOUR ageHTML 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!
<h1>...</h1> to your own title<p>I love coding!</p>| Tag | What It Does | Analogy |
|---|---|---|
<h1> | Big heading (title) | The sign on top of a shop |
<p> | Paragraph of text | A page in a book |
<ul> | Unordered list (bullet points) | A shopping list |
<li> | One item in a list | One item on the shopping list |
<button> | A clickable button | A doorbell |
<h1> needs a closing tag </h1> (notice the /). Forgetting the closing tag is the #1 beginner mistake!
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?
2. What is the "frontend" of a website?
3. Which language controls how a website LOOKS (colors, fonts, spacing)?
4. What does let age = 25; do?
5. What is the closing tag for <h1>?