lua add to table

-- Step 1: Create an empty table
myTable = {}

-- Step 2: Add elements to the table using numerical indices
myTable[1] = "First Element"
myTable[2] = "Second Element"

-- Step 3: Add elements to the table using string indices
myTable["name"] = "John"
myTable["age"] = 25

-- Step 4: Add elements to the table using a mix of numerical and string indices
myTable[3] = "Third Element"
myTable["city"] = "New York"

-- Step 5: Display the content of the table
for key, value in pairs(myTable) do
    print(key, value)
end