title: Replacing multiple variables inside an Array & then list Javascript
body: <p>In the code below, I call an NBA api, and create an array from a specific bracket within it.
  However, this only gives me an array full of numbers, which are the NBA team's ID's. I'm trying to change all of the values into the Team name's themselves and list them.
  For example, '29' would be the Portland Trailblazers; 25 would be the Oklahoma City Thunder.</p>
  <p>I've tried multiple threads with similar problems, but have yet to find something that works.</p>
  <p><strong>Code:</strong></p>
  <pre><code>var idarray = [];
  
  var idz = response.api.standings
  for (var i = 0; i &lt; idz.length; i++) {
  
      idarray.push(idz[i].teamId);
  }
  console.log(idarray)
  </code></pre>
  <p><strong>Array that prints out from above code:</strong></p>
  <pre><code> [
    '41', '5',  '20', '1',  '26',
    '24', '4',  '27', '38', '2',
    '6',  '21', '7',  '15', '10',
    '19', '14', '8',  '31', '23',
    '11', '30', '28', '16', '17',
    '40', '22', '9',  '29', '25'
  ]
  </code></pre>