Answers for "a variable having array of objects in typescript"

2

typescript array of objects

// Create an interface that describes your object
interface Car {
  name: string;
  brand: string;
  price: number;
}

// The variable `cars` below has a type of an array of car objects.
let cars: Car[];
Posted by: Guest on December-03-2020

Code answers related to "a variable having array of objects in typescript"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language