repsweet080303 / typescript-learning

0 stars 0 forks source link

Array #2

Open repsweet080303 opened 1 year ago

repsweet080303 commented 1 year ago

Arrays

To specify the type of an array like [1, 2, 3], you can use the syntax number[], this syntax works for any type.

or Array<number>, Array<string>