Table with name and value

how do i make a table with {[“Name”] = value}?

local myTable = {}
myTable["TheCake"] = "IsALie"

function getCake()
     return myTable["TheCake"]
end

getCake() -- "IsALie"

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.