Code Room
Code reviewMediumcr-g296
Subject Blocking ioLevel Mid–Senior~18 minCommon in Distributed systems interviewsIndustries Software development, Technology

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.

Talk through your review
Code to reviewjavascript
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.