Codington

JavaScript exercises

Free browser exercises with instant feedback, from beginner to advanced.

Teaching JavaScript? Use with your class

0 of 166 exercises completed

0%
No account needed · Progress saved in this browser
Start practising

Part 1

Foundations

Start with expressions, variables, values, decisions, and functions.

Beginner · 10 modules

Module 1

Console and Expressions

Write and run your first JavaScript expressions while learning how console output helps you understand a

0 of 6 completed
Start
Module 2

Variables with const and let

Store, name, read, and update the values a JavaScript program works with.

0 of 8 completed
Start
Module 3

Numbers and Arithmetic

Calculate with numbers using clear JavaScript expressions and variables.

0 of 10 completed
Start
Module 4

Strings and Text

Build and inspect text with strings, interpolation, and simple string methods.

0 of 10 completed
Start
Module 5

Types and Conversion

Understand common JavaScript value types and make conversions explicit.

0 of 8 completed
Start
Module 6

Comparisons and Booleans

Create useful true-or-false values with comparisons and logical operators.

0 of 8 completed
Start
Module 7

Conditions and Branching

Use boolean conditions to choose between different program paths.

0 of 10 completed
Start
Module 8

Function Basics

Group instructions into named functions and call them when they are needed.

0 of 8 completed
Start
Module 9

Parameters and Return Values

Write functions that receive inputs and produce results other code can use.

0 of 8 completed
Start
Module 10

Arrow Functions

Write short reusable functions with arrow syntax and predictable return values.

0 of 6 completed
Start

Part 2

Collections and Control Flow

Work with arrays, loops, objects, destructuring, and variable scope.

Beginner to intermediate · 10 modules

Module 11

Array Basics

Create ordered collections and read their values with indexes and length.

0 of 8 completed
Start
Module 12

Changing Arrays

Update, extend, shorten, and copy arrays with deliberate operations.

0 of 8 completed
Start
Module 13

Repetition with Loops

Repeat instructions safely with for and while loops.

0 of 8 completed
Start
Module 14

Looping Through Arrays

Process every array value with loops, counters, totals, and result arrays.

0 of 10 completed
Start
Module 15

Object Basics

Represent one thing with named properties stored in an object.

0 of 8 completed
Start
Module 16

Object Properties and Iteration

Use dynamic properties and iterate over object keys, values, and entries.

0 of 8 completed
Start
Module 17

Nested Data and Collections

Combine arrays and objects to work with small, realistic data sets.

0 of 10 completed
Start
Module 18

Array and Object Destructuring

Extract values clearly from arrays, objects, parameters, and nested data.

0 of 8 completed
Start
Module 19

Spread, Rest, and Immutable Updates

Copy, combine, and update arrays and objects without changing the originals.

0 of 8 completed
Start
Module 20

Scope and Variable Lifetime

Predict where variables are available across functions, blocks, and loops.

0 of 8 completed
Start