Memory Management & Garbage Collection

What memory problem does this code likely create?
let data = [];

function fetchData() {
  // Simulates fetching data from a server
  const newItems = new Array(10000).fill().map(() => ({
    id: Math.random(),
    value: Math.random()
  }));
  
  // Append new items to existing data
  data = [...data, ...newItems];
  
  display(data);
}

// Call this function repeatedly
setInterval(fetchData, 5000);
Next Question (24/40)