ChatGPT - JavaScript Array: Help Request