codedamn

The array Type

Created by Muslim helalee about 6 months ago

0

No description

1 Comment

    0

    To add to what the Instructor said in the video.

    The nested array can contain both string and number as per this syntax.

    let numberAndStringsArray: (string | number)[][] = [
        ["str", 1],
        [1, 2, 3, 4, 5],
        ["str", "basket", "fruit", "vegetable", "onion", 3.141],
        ["Elon Musk", "Taylor Swift"]
    ]
    
    @pranavtechie

    Pranav Mandava

    @pranavtechie

Your comment