Daily Developer Debug
One practical bug, API behavior, or security decision. Choose an answer, read the reasoning, and build a local streak—no signup required.
Challenge
#296
Next puzzle
--:--:--
Seconds or milliseconds?
Why does this JavaScript date appear near January 1970?
new Date(1719423234)
Choose one answer
Unix timestamps are often expressed in seconds, while the JavaScript Date constructor expects milliseconds. Multiply the seconds value by 1000.
Key takeaway
Confirm timestamp units before debugging timezone behavior.
Why practice debugging?
Writing code and reviewing code are different skills. Short debugging exercises help developers slow down, predict behavior, recognize unsafe assumptions, and select tests that distinguish a correct implementation from a plausible-looking mistake. These challenges are educational examples—not a substitute for your language runtime, project tests, official specifications, or security review.