Code Room
Code reviewMedium
Question
Review this JavaScript that books a recurring 9am New York meeting on each given date and stores the UTC instant.
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
const NY_OFFSET = '-05:00'; // New York is UTC-5 function nineAmUtc(dateStr) { // dateStr like '2026-01-15' const iso = `${dateStr}T09:00:00${NY_OFFSET}`; return new Date(iso).toISOString();} function scheduleSeries(dates) { return dates.map((d) => ({ date: d, startUtc: nineAmUtc(d), }));}Run or narrate your approach, then ask the coach.