Reading · 9 min

Values, variables and functions

You are previewing a free lesson. Enrol to save progress and take quizzes.

Use const for values that do not change and let for values that do. Functions package reusable steps.

Example

A function takes inputs, called parameters, and returns a result. Small functions with one job are easier to test and reuse.