CodePath
Laptop showing code on a desk
BEGINNER PATH

Learn to Code from Zero

5 modules · 20 lessons · hands-on from lesson one

Your Learning Roadmap

Beginner Outcomes

  • Read and write simple, well-commented programs on your own
  • Understand variables, data types, and how programs make decisions
  • Break everyday problems into small, logical steps a computer can run

Your Progress

Overall progress 25%
Module progress tap a module to open
Person studying code
Module 1

Introduction to Coding

Estimated time: 45 min Prerequisite: None

About this module

Your very first steps into programming. You will learn what code actually is, run your first program in the browser, and discover how comments keep code readable — all with short, friendly examples you can edit yourself.

Lessons

Learning objectives

  • Explain, in plain words, what a program and a programming language are
  • Write and run a tiny program that prints output to the screen
  • Use comments to document your code for future readers
  • Navigate the built-in playground confidently and experiment on your own
Lesson 1 of 4 10 min

What is Code?

Code is a set of written instructions a computer follows step by step. Like a recipe, it tells the machine exactly what to do and in what order. Below is a tiny example — a program that greets the world.

Example · hello.js
// This program prints a greeting
let greeting = "Hello, world!"
print(greeting)
print("Nice to meet you")

Try it yourself

Edit the code on the left, then press Run Code. Try changing the text inside the quotes!

your-code.js
Output
Press Run Code to see your program's output here…

Great job!

You finished the practice check for Lesson 1.

Score: 80% (4/5)
Review your answers
Lesson 1 complete — progress updated!