Menu
Coddy logo textTech

The Language

Part of the Fundamentals section of Coddy's Lua journey — lesson 1 of 90.

Lua is designed to be simple and easy to understand, making it an excellent choice for new programmers. It's used in many applications, from game development to web servers, because of its flexibility and straightforward syntax.

challenge icon

Challenge

Easy

Write your first Lua program using the print() function to display the message Hello Lua! on the screen.

What to do:

  1. Look at the code: print("Hello Lua!")
  2. Press the "Run" button to execute it
  3. You should see "Hello Lua!" appear in the output

Cheat sheet

To display text on the screen in Lua, use the print() function:

print("Hello Lua!")

Try it yourself

print("Hello Lua!")

All lessons in Fundamentals