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. print and chunks

    Lesson 1 · On the house

    print and chunks

    The smallest Lua program.

  2. Variables and nil

    Lesson 2

    Variables and nil

    Local vs global.

  3. Numbers and strings

    Lesson 3

    Numbers and strings

    Two core types.

  4. Tables intro

    Lesson 4

    Tables intro

    The one data structure.

  5. if and comparisons

    Lesson 5

    if and comparisons

    Branches.

  6. while and for

    Lesson 6

    while and for

    Loops.

  7. functions

    Lesson 7

    functions

    First-class values.

  8. pairs and ipairs

    Lesson 8

    pairs and ipairs

    Iterate tables.

  9. require basics

    Lesson 9

    require basics

    Modules.

  10. A small chunk

    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