Check out example codes for "string array typsecript". It will help you in understanding the concepts better.

Code Example 1

let list: number[] = [1, 2, 3];

Code Example 2

//Define an interface to standardize and reuse your object
interface Product {
    name: string;
    price: number;
    description: string;
}

let pen: Product = {
  name: "Pen",
  price: 1.43,
  description: "Userful for writing"
}

let products: Product[] = [];
products.push(pen);
//...do other products.push(_) to add more objects...
console.log(products);
/* -->
*[
* {
*  name: "Pen",
*  price: 1.43,
*  description: "Userful for writing"
* },
* ...other objects...
*]

Code Example 3

const listOfStrings: string[] = ['hello', 'mom'];

Learn ReactJs, React Native from akashmittal.com