Beginner
Level 1 — Beginner
Start here if you have never written a line of Lua before. No programming experience is required — work through these lessons in order, since each one builds on the last.
Lessons in this module
- 1. What Is Lua? 4 min
- 2. Why Learn Lua? 3 min
- 3. What Can You Do With Lua? 3 min
- 4. Installing Lua 3 min
- 5. Setting Up Your Environment 3 min
- 6. Your First Program 4 min
- 7. How Lua Code Runs 4 min
- 8. Variables and local 5 min
- 9. Data Types 4 min
- 10. nil and Booleans 4 min
- 11. Numbers and Math 5 min
- 12. Strings 5 min
- 13. String Functions 5 min
- 14. Operators 4 min
- 15. if Statements 4 min
- 16. while and repeat Loops 4 min
- 17. Numeric for Loops 3 min
- 18. Tables: The One Data Structure 5 min
- 19. Arrays 5 min
- 20. Dictionaries and Records 4 min
- 21. Iterating with pairs and ipairs 5 min
- 22. The Table Library 5 min
- 23. Functions 5 min
- 24. Multiple Returns and Default Arguments 4 min
- 25. Scope and Blocks 4 min
- 26. Input and Command-Line Arguments 4 min
- 27. Comments and Style 4 min