title: Explaining Arrays - connecting to specific object
body: <p>I am learning JavaScript at the moment and I am doing some exercise about arrays. I cant understand how "user" from the code below accesing all "username" from every object in array.</p>
  
  <p>Here is an example of my array:</p>
  
  <pre><code>//array
  const array = [{
      username: "john",
      team: "red",
      score: 5,
      items: ["ball", "book", "pen"]
    },
    {
      username: "becky",
      team: "blue",
      score: 10,
      items: ["tape", "backpack", "pen"]
    },
    {
      username: "susy",
      team: "red",
      score: 55,
      items: ["ball", "eraser", "pen"]
    },
    {
      username: "tyson",
      team: "green",
      score: 1,
      items: ["book", "pen"]
    },
  
  ];
  
  //exercise where I cant undestand how user parameter acces username from objects
  
  const filterArray = array.filter(user =&gt; {
    return user.team === "red";
  })
  
  console.log(filterArray);
  </code></pre>