Northstar Learning › Coding course

Learn TypeScript by doing

300 quests · JavaScript foundations, unions, narrowing, generics, tuples and async · strict mode

300 questions · free · no account needed · works offline once loaded

Start learningTry today’s daily challenge

What you will cover

Try some questions

Tap a question to see the answer and why.

What prints after successful type checking?
const adults = 3;
const kids = 2;
const price = 8;
console.log((adults + kids) * price);

Options: 8 · 19 · 40 · An error is thrown

Answer: 40

It prints: 40. Brackets run first. Add the people together, then multiply by the price.

Play with friends

Northstar also has a group quiz: host a live room, run one on a single screen, or send a friend a challenge link.

Open the group quiz