Syllabus

  1. 01Getting StartedMeet Lua, run your first program, control the order of your output and leave notes for humans with comments.5 lessons
    1. 01Hello, Lua
    2. 02Printing and Program Order
    3. 03Comments
    4. 04Block Comments
    5. 05Project: Campsite Sign
  2. 02Data Types and OperatorsLearn the basic kinds of values Lua works with, how to ask a value for its type, and how to calculate with arithmetic operators.5 lessons
    1. 01Kinds of Data
    2. 02Integers and Floats
    3. 03Strings
    4. 04Arithmetic Operators
    5. 05Order of Operations
  3. 03VariablesStore values under names, update them as your program runs, join strings together and keep variables local to the code that needs them.6 lessons
    1. 01Creating Variables
    2. 02Updating Variables
    3. 03Multiple Assignment
    4. 04Joining Strings
    5. 05Local Variables
    6. 06Project: Snack Planner
  4. 04Conditionals and LogicLet your programs make decisions with if, elseif and else, compare values, combine conditions with and, or and not, and learn which values Lua treats as true.6 lessons
    1. 01If Statements
    2. 02Comparison Operators
    3. 03Else and Elseif
    4. 04Logical Operators
    5. 05Truthy Values and Defaults
    6. 06Project: Trail Advisor
  5. 05FunctionsPackage code into reusable functions, pass them information through parameters, get results back with return and keep variables local to where they belong.7 lessons
    1. 01Defining Functions
    2. 02Parameters and Arguments
    3. 03Return Values
    4. 04Returning Several Values
    5. 05Scope Inside Functions
    6. 06Project: Running Pace Converter
    7. 07Next Steps: Tables and Loops