Is it better to use string variables or normal variables in a table?

I’ve been wondering this, in my projects I use a mix of both just because I don’t know if one is better than the other, or its just personal preference.

This is what I mean:

local Table = {
	["Money"] = 500,
	["Gems"] = 20,
	["DoubleXP"] = false
}

or:

local Table = {
	Money = 500,
	Gems = 20,
	DoubleXP = false
}

Let me know!

Both do the same thing, simply personal perference. Though ["Key"] does allow for more characters as in you can have spaces and such.

1 Like

["key"] is more visually appealing to some, i prefer it over normal ones