Array.key VS array["key"]

Hi there and thanks for the very informative and easy to follow lessons on Udemy.

In the part where we need to add the strings that are displayed to the players, you reference the keys within the json file with strings["intro_text"] as opposed to strings.intro_text. Either way seems to work so I was just wondering whether it is a matter of preference or if there is a difference between the two?

Privacy & Terms