JavaScript dates are notoriously tricky to work with.
But once you've taken the time to really understand dates, you'll realize that you usually don't need moment, date-fns, etc.
For example, add 30 days to a date 👉 masteringjs.io/tutorials/fun…#JavaScript#CodeNewbie
Our number one tip for better tech writing: stop using the word "it"
Don't say "its failing", at least say "the test is failing"
Don't say "its undefined", say "v is undefined" or "the return value is undefined"
"It" is usually too vague
#JavaScript#CodeNewbie#TechWriting
We love Mocha. The best JavaScript test runner out there:
🪨 Stable
💪 Reliable
⏩ Blazing fast
Check out our tutorials on Mocha: masteringjs.io/mocha#JavaScript#CodeNewbie
No, you don't need date libraries in JavaScript.
Not moment, date-fns, luxon. Not even Temporal.
Seize the Date
For example, here's how you can increment months 👉 masteringjs.io/tutorials/fun…#JavaScript#CodeNewbie
New Substack post is out: What Are Good Side Hustles for Web Developers?
Revisiting a topic we covered back on our old Revue mailing list. Big change: we now recommend micro SaaS if you're a dev that has marketing chops or wants to learn
masteringjs.substack.com/p/w…