2026-10-06
Daily Tech Challenge
With `strict` enabled (TypeScript 4.4+), what does the compiler do with the two catch clauses below?
declare function risky(): void;
try { risky(); } catch (e: unknown) { console.log(e); } // A
try { risky(); } catch (e: Error) { console.log(e.message); } // BTuesday, October 6, 2026 · A new challenge drops every day