Lessons

An introduction to writing Lua

Lua · Introductory. Ten lessons. Open-book quizzes. Lesson 1 free.

10 lessons · The Host · Lesson 1 free

Pass all ten lessons for the certificate. Sample · Claim

  1. Lesson 1 · On the house

    print and chunks

    The smallest Lua program.

  2. Lesson 2

    Variables and nil

    Local vs global.

  3. Lesson 3

    Numbers and strings

    Two core types.

  4. Lesson 4

    Tables intro

    The one data structure.

  5. Lesson 5

    if and comparisons

    Branches.

  6. Lesson 6

    while and for

    Loops.

  7. Lesson 7

    functions

    First-class values.

  8. Lesson 8

    pairs and ipairs

    Iterate tables.

  9. Lesson 9

    require basics

    Modules.

  10. Lesson 10

    A small chunk

    Table + function.

Sample certificate

Certificate of completion

Sign in to claim your certificate of completion.

Certificate

Finish all ten lessons, then sign in

Pass every lesson on this device (quizzes and checks). Then sign in or create an account to type your name and download the JPG.

All lessons

An introduction to writing Lua — The Gold Standard