The at() method of an array takes an integer and returns the item at that index. Negative integers start from the end of the array.

    
    const cities = ["Detroit", "Miami", "New York", "Boston"];

    const at = cities.at(0)

    console.log(at);
    // "Detroit"