in typescript what is index signature code example
Example: index signature in typescript
let foo: any = {};
foo['Hello'] = 'World';
console.log(foo['Hello']); // World
let foo: any = {};
foo['Hello'] = 'World';
console.log(foo['Hello']); // World