lua how to add something to a table

-- Step 1: Create a table
myTable = {}

-- Step 2: Add an element to the table
myTable[1] = "FirstElement"

-- Step 3: Add another element to the table
myTable[2] = "SecondElement"

-- Step 4: Print the table to verify the additions
for key, value in ipairs(myTable) do
    print(key, value)
end