Tutorials
Programming
Programming tutorials for people who want code that actually runs, not code that only looks right. Pick a language, start at the beginning, and don't skip the basics. They are where most problems come from.
0 likes
Likes for this tutorial.
Why Your Date Is Off by One Day
Level: Intermediate
Your date moves a day because one part of the code uses UTC and another uses local time. Find which step does it, keep calendar days as YYYY-MM-DD strings, and name the time zone when you format.
5 min read
0 likes
Likes for this tutorial.
Destructuring Function Parameters With Defaults
Level: Intermediate
Replace long lists of positional arguments with one options object, destructured in the parameter list with defaults. Add = {} so a call with no argument doesn't crash, and know that defaults only replace undefined.
4 min read