We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

let and const

The var keyword is the "old" way to declare variables in JavaScript. These days, you should use let and const instead. The let keyword is for variables that can be reassigned, while const is for variables that can't.

let username = "dengar_the_bh";
username = "boba_fett";

const smsSendingLimit = 1000;

Use const for values that never change, and let for values that do.

The var keyword is function-scoped instead of block-scoped, meaning when it's used inside an if block the variable leaks out, while let and const don't.

You'll encounter legacy code that uses var, so you need to know about it, but migrate it to let or const when you can.

Assignment

The code as-is sends two birthday messages (oops) instead of a welcome message and a birthday message!

Once fixed, submit your code.