🔥 3-day streak
GitHub Copilot133 / 190
Question 133 of 190

A developer maintains a Node.js service that iterates over an array of 500 user IDs and, inside the loop, calls an external REST endpoint once per ID with `await fetch(...)`. The endpoint also exposes a bulk lookup route that accepts up to 100 IDs per request. The developer selects the loop and asks Copilot Chat: "Refactor this to reduce the number of network round trips." What is the most appropriate way to evaluate Copilot's suggested refactor before merging it?

Reviewed for accuracy · Report an issueNext question