Code Room
Code reviewMedium
Question
Review this JavaScript function that loads several independent resources for a page. It's slower than expected.
What a strong answer looks like
Separate real bugs from style. Rank issues by severity, point at the root cause rather than the symptom, and suggest a concrete fix — specific and kind.
Learn the concepts
async function loadPage(userId) { const profile = await fetchProfile(userId); const orders = await fetchOrders(userId); const recs = await fetchRecommendations(userId); const notices = await fetchNotices(userId); return { profile, orders, recs, notices };}Run or narrate your approach, then ask the coach.