Introduction
Index signatures let you describe objects with keys you don't know in advance. This helps when you want to store many similar items with different names.
You want to store user settings where each setting name can vary.
You need to keep track of scores for players with unknown player names.
You want to create a dictionary where keys are dynamic and values have the same type.
You are working with JSON data that has flexible keys.
You want to access object properties using variables instead of fixed names.