I've been thinking about using a dictionary to deal with storing values in my game. I would then save this as a JSON in Webstorage and Load it as a JSON at the start of the game to allow saving in the game. However, I can only find information about people using arrays for this purpose. Not to say I can't figure out how to apply this to dictionaries (seems pretty straight forward) but I'm worried that there is a reason no one is using dictionaries.
Is it a smarter practice to use an array for storing values (level progress) that will be saved and loaded from WebStorage?
I would say Dictionaries are actually a smarter choice, since you can name entries. For example instead of: Set index 0 to "John" Set index 1 to "Biggles" Set index 2 to "Smith" You can have: Set key "first_name" to "John" Set key "middle_name" to "Biggles" Set key "last_name" to "Smith" ...which is a lot clearer.
Arrays are better if you need 2D or 3D data storage, though (e.g. a grid of values).