const hobbies: string[] = ['Codiga', 'Assistant'];
      Typescript language logo

      Array variable

      Codiga's TypeScript Recipes

      Array types can be written in one of two ways. In the first, you use the type of the elements followed by [] to denote an array of that element type. If no types are declared, TypeScript will automatically assign a type depending on the types of the Array values.


        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.