Learn Lua


Why Learn Lua?

Lua is a powerful and intuitive general-purpose programming language used for building games (such as Roblox, World of Warcraft, and Angry Birds), web apps (such as Venmo and Adobe), and developer tools. This course for beginners will teach you the basics of programming with the Lua language while giving you interactive practice building terminal-based programs.

Take-Away Skills:

In this course, you will learn a variety of basic programming skills using the Lua language. You’ll learn how to:

  • Write code in Codecademy’s built-in code editor
  • Add comments to your code
  • Print messages to the terminal
  • Identify and use the various data types
  • Store data using variables
  • Make decisions using conditional statements
  • Organize your code using functions

Notes on Prerequisites:

This course is for beginners who are new to programming. There are no prerequisites for this course!

Codecademy courses have been taken by employees at

Google LogoFacebook LogoNASA LogoIBM LogoDropbox Logo
  1. 1
    Learn about what the Learn Lua course has in store!
  2. 2
    Write and run your very first Lua program!
  3. 3
    Learn how to work with Data in the Lua programming language. You’ll learn about data types, operators, and variables!
  4. 4
    Learn how to make decisions in your Lua application with conditional statements.
  5. 5
    Learn how to organize and reuse your code with functions.

What you'll create

Portfolio projects that showcase your new skills

Pro Logo

How you'll master it

Stress-test your knowledge with quizzes that help commit syntax to memory

Pro Logo

— Madelyn, Pinterest

I know from first-hand experience that you can go in knowing zero, nothing, and just get a grasp on everything as you go and start building right away.

Course Description

Learn the basics of Lua, a general-purpose programming language used for building games, web apps, and developer tools.


Earn a certificate of completion
8 hours to complete in total

1 informational

Write and run your very first Lua program!

2 lessons, 2 quizzes, 1 project

1 lesson, 1 quiz, 1 project

1 lesson, 1 quiz, 1 project

1 article, 1 informational