WitzCode
← All tracks
⚡ JavaScript·Variables & Types

Variables & Types

let, const, numbers, strings, booleans.

Variables

const name = 'Ada';
let age = 30;
age += 1;
console.log(name, age);

Use const by default; use let only when the value changes.

Challenge 1 / 20 XP

Which keyword creates a value that never gets reassigned?

Practical task

Declare a constant `name` set to the string `Ada`.