Track
JavaScript
Review control flow, async behavior, naming, and side effects.
- 01
Strict equality and nullish checks
Compare values intentionally and preserve meaningful falsy values.
equalitynullishcoercion - 02
Guard clauses
Use early returns to keep exceptional cases out of the main path.
control-flowreadabilityvalidation - 03
Validating data boundaries
Check data from outside your code before the rest of the function trusts it.
validationboundariesdefensive-code - 04
Naming side effects
Name functions so callers can see when data will be mutated.
namingmutationside-effects - 05
Array transformations
Use array methods to make collection changes readable and avoid accidental mutation.
arraysimmutabilityreadability - 06
Async error handling
Handle failed requests and unsuccessful response statuses before parsing data.
asyncfetcherrors - 07
Promise concurrency
Run independent async work together instead of waiting one request at a time.
asyncpromisesperformance - 08
Event listener cleanup
Pair event listeners with cleanup so repeated setup does not duplicate behavior.
eventscleanupbrowser - 09
Module boundaries and globals
Keep shared behavior behind module APIs instead of scattering mutable global state.
modulesglobalsarchitecture - 10
Dates and time zones
Format dates with explicit locale and time zone choices instead of manual date math.
datestime-zonesinternationalization