var reporter = []
fetch("http://localhost:3000")
  .then(response => response.json())
  .then(response => {
    response.forEach(element => {
      reporter.push(element)
    });
  })
console.log(reporter)
I have a fetch function which gets an array from port 3000, but I am unable to store it in the array.
What am I doing wrong?
Thanks for any help.
 
    