Tab Macro Testing

  • Frodo gets a gold ring from his uncle.

  • It turns out to be a super dangerous weapon that belongs to a dark lord.

Frodo and his friends have to walk across the whole world to destroy the ring in a giant volcano.

πŸ§™β€β™‚οΈπŸ§β€β™‚οΈπŸ§”β€β™‚οΈπŸšΆβ€β™‚οΈπŸšΆβ€β™‚οΈπŸšΆβ€β™‚οΈπŸšΆβ€β™‚οΈ [The Fellowship] ------> πŸŒ‹ [Mount Doom]

The team splits up. Frodo gets lost and has to trust a weird, sneaky cave creature named Gollum to show him the way.

🧌 "My Precious!"

/ \

πŸƒβ€β™‚οΈ πŸƒβ€β™‚οΈ [Frodo & Sam]

They finally reach the volcano, but Frodo changes his mind. Luckily, Gollum bites the ring off his finger and accidentally falls into the lava, saving everyone.

HTML
function destroyRing(frodo: any, gollum: CaveCreature, ring: Ring): string {
  // Frodo reaches the end but fails
  frodo.willpower = 0;
  console.log("Frodo: Actually, I think I'll keep it.");

  // Gollum saves the day by accident
  console.log("Gollum bites Frodo's finger!");
  ring.owner = "Gollum";

  const volcanoLava = true;
  if (volcanoLava) {
    console.log("Gollum falls into the lava. Ring destroyed!");
    return "World Saved! πŸŽ‰";
  }
}