Lua uses print() to output text. It’s a lightweight, fast, and embeddable scripting language popular in game development (Roblox, World of Warcraft addons) and embedded systems.
Run this example to see how it works and then try the exercise.
Click "Run" to see the example in action...Click "Run" to execute your code...How do you write a single-line comment in Lua?
SUMMARY
In this section, you learned how to print output to the console. Next, you’ll learn how to declare variables and work with different data types.