Legend quest · reward 55 XP

Prove the type in an if.

🥚

Egg hatching · 0%

Finish every step to hatch your monster!

Step 1 / 6

👾

Type Guard

Prove the type in an if. 🔍 Why it matters: This is how apps store lots of things at once, like a monster's backpack.

if (typeof x === 'string') {}