May 29, 2026
TypeScript
Initialization for Object Types
const fruitNames: {[key: string]: number} = {Apple: 10, Orange: 20}