Skip to content
Gwecode.
courses build components
sign up free log in
~ / courses / javascript / javascript-basics
Beginner · JavaScript

JavaScript for Beginners

Start from zero and learn the building blocks of JavaScript: printing output, storing data in variables, working with text and numbers, making decisions, repeating actions, and writing your own functions. By the end you will build a tiny program of your o

A friendly, hands-on introduction to JavaScript for people who have never written a line of code. Each lesson explains one idea in plain English and lets you run real code right away. You will learn console.log, variables with let and const, strings, numbers, booleans, arrays, if/else decisions, for loops, and functions, then put it all together in a small final project.

Beginner 12 lessons ~106 min JS JavaScript
Start the course
01

Getting Started

Meet JavaScript, print your first message, and learn how to store information in variables.

3 lessons
  1. 1 Your First Line of Code Printing messages with console.log 6 min →
  2. 2 Storing Things in Variables Using let and const to remember values 8 min →
  3. 3 Comments and Fixing Mistakes Notes for humans and how to read errors 5 min →
02

Working with Data

Learn the basic kinds of values in JavaScript: text, numbers, and true/false.

3 lessons
  1. 4 Text and Strings Working with words and joining them together 8 min →
  2. 5 Numbers and Maths Doing arithmetic with operators 9 min →
  3. 6 True, False, and Comparisons Yes/no values and asking questions 8 min →
03

Making Decisions and Repeating

Teach your program to choose between paths and to repeat actions automatically.

3 lessons
  1. 7 Lists with Arrays Storing many values in one place 9 min →
  2. 8 Choosing with if / else Running code only when a condition is true 10 min →
  3. 9 Repeating with for Loops Doing something many times without copy-paste 11 min →
04

Functions and Your First Project

Package code into reusable functions, then combine everything you have learned into a small program.

3 lessons
  1. 10 Writing Functions Reusable blocks of code with inputs 10 min →
  2. 11 Putting It All Together Combining variables, loops, and functions 10 min →
  3. 12 Final Project: Greeting Generator Build a tiny program of your own 12 min →
</>
Gwecode

Free, friendly programming lessons for absolute beginners and beyond.

Courses Start here About
© 2026 Gwecode. Always free to learn.
playground
codeCtrl+Enter to run
output
Run your code to see the result.