Table[key] vs table.key

Hi, I want to know if there’s any difference in the output of tableName[keyName] and tableName.keyName in a table / dictionary

I know tableName.keyName only allows strings, and its like calling a children ig, it also prints out the same thing.

Is tableName.keyName useless since you can use tableName[keyName]?
Is there a more optimal one?

You can use either one. It just depends on the property name and how you prefer to index properties

2 Likes