โ† Home CP ยท Ages 10-12 ๐Ÿช‚ Parachute Pack Step 1 / 4
โ˜๏ธ โœˆ๏ธ ๐Ÿช‚ ๐ŸŒค๏ธ
๐Ÿช‚
โ˜€๏ธ Sky Academy Universe
Parachute Pack
Jump from the plane in a try block. If something goes wrong, your catch parachute saves you. And finally always runs โ€” just like your landing report!

๐Ÿ›ก๏ธ Error Handling: try / catch / finally

Code doesn't always go perfectly โ€” sometimes things BREAK! A try block attempts risky code. If it fails, catch grabs the error so your program never crashes. And finally runs every time, no matter what!

๐Ÿ”„ try = attempt the jump ๐Ÿช‚ catch = the parachute โšก throw = create an error ๐Ÿ“ finally = always lands
๐Ÿ“– You built classes in Robot Blueprint Factory โ€” now learn to protect them from crashes!
Challenge 1 of 4
๐Ÿ’ป CODE EDITOR try block
skydive.js
๐ŸŽ›๏ธ MISSION CONTROL set conditions
weather
blocks
๐Ÿช‚ SKYDIVE PREVIEW live result
โšก โ˜๏ธ โ˜๏ธ
โœˆ๏ธ
๐Ÿ˜ฑ
Ready โœˆ๏ธ
๐ŸŒฒ ๐ŸŒณ ๐ŸŒฒ
๐Ÿ“Ÿ CONSOLE OUTPUT execution trace
// Press JUMP to run the try blockโ€ฆ
๐Ÿ“‹ Your 4 Sky Academy Challenges
0 of 4 challenges complete
๐Ÿช‚
You're an Error Expert!
You mastered try / catch / finally / throw โ€” the four tools that keep code from crashing! You jumped from planes, deployed parachutes, threw your own errors, and proved that finally ALWAYS runs. That's exactly how real programmers build crash-proof apps! ๐Ÿ›ก๏ธโœจ

๐Ÿช‚ What You Learned

  • A try block wraps code that MIGHT fail โ€” like jumping from a plane. It says "I'll attempt this!"
  • A catch block grabs errors so your program never crashes โ€” it's your parachute! Without catch, errors explode.
  • The throw keyword lets YOU create an error on purpose โ€” like pulling a fire alarm when something is wrong.
  • A finally block runs EVERY TIME โ€” whether the try succeeds or fails. It's perfect for cleanup!
  • Together, try + catch + finally make your code crash-proof. Real apps use this everywhere!
๐Ÿ”ฎ Come Back Tomorrow!
Next up: CALLBACKS & PROMISES โ€” what happens when code takes TIME? Some things can't happen instantly (like waiting for a delivery). Learn how JavaScript waits, promises to finish, and calls you back. The async adventure begins!
๐Ÿ  Home
Nice! ๐ŸŽ‰