Lessons

An introduction to writing Zig

Zig · 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

    Hello and zig run

    The smallest Zig program.

  2. Lesson 2

    const var and types

    Immutability first.

  3. Lesson 3

    Arrays and slices

    [N]T and []T.

  4. Lesson 4

    if and comparisons

    bool branches.

  5. Lesson 5

    while and for

    Loops.

  6. Lesson 6

    functions

    fn and pub.

  7. Lesson 7

    structs

    Fields and methods.

  8. Lesson 8

    optionals

    ?T and if capture.

  9. Lesson 9

    error unions

    !T and try.

  10. Lesson 10

    A small program

    struct + error.

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 Zig — The Gold Standard