Start here · In your browser · challenge 1 of 2 in this lesson
average({10, 20, 30}) is 20
A code cell with the real Luau runner grades it. No Studio needed.
Open
Level 2, Builder
Challenge
This function fails. Read the error, find the cause and fix it so every test passes.
- Start from
- The code cell below the challenge, which runs a hidden test when you press Run.
- Check it here
- Run the code cell; the challenge completes when it passes. No Studio needed.
Done means
- average({10, 20, 30}) is 20
- average({}) is 0, not nan
- Self-check, not graded: you can say which line the error named and which line held the cause