Menu
Coddy logo textTech

Recap - Character Profile

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

challenge icon

Challenge

Easy

Create variables to represent a complete game character profile using the appropriate data types for each piece of information:

  • Create a variable named characterName and assign it the string "Warrior"
  • Create a variable named characterLevel and assign it the number 12
  • Create a variable named characterHealth and assign it the number 85
  • Create a variable named isHero and assign it the boolean true

After creating all variables, print each one on a separate line in the order they were created.

Expected Output:

Warrior
12
85
true

Try it yourself

-- TODO: Create the character profile variables here

-- TODO: Print each variable on a separate line

All lessons in Fundamentals