Access an Array in Backbone Model
<p><a href="https://i.stack.imgur.com/OWj3X.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OWj3X.png" alt="enter image description here"></a></p>

<p>Hi all, </p>

<p>How do I access the fields(Employees &amp; Location) of each object in this array in Backbone? </p>

<pre><code>var DataModel = Backbone.Model.extend({
    // urlRoot: "https://corporate-dashboard.firebaseio.com/locations.json"
    urlRoot: ""
});

var locationModel = new DataModel();
locationModel.urlRoot = "https://corporate-dashboard.firebaseio.com/locations.json"
locationModel.fetch()



console.log(locationModel.get("Location")); &gt;&gt; Got "undefined"
tried locationModel.get(0) and locationModel[0] &gt;&gt; got "undefined"
</code></pre>

<p>Thanks!</p>