Module 2 · In your browser · challenge 2 of 3 in this lesson

parseKind accepts "coin", "buy" and "deny" and returns the exact literal

A code cell with the real Luau runner grades it. No Studio needed.

Open

Level 2, Builder

Challenge

Write parseKind(value: unknown): FeedbackKind? in the cell below. Passing the tests completes this challenge.

Start from
The Run cell below
Check it here
Run the code cell; the challenge completes when it passes. No Studio needed.

Done means

  • parseKind accepts "coin", "buy" and "deny" and returns the exact literal
  • Wrong case, numbers and nil return nil
  • All five assertions pass
Luau
Ctrl Enter runs the cell. Checked by tests