Search posts, tags, users, and pages
If you've been writing JavaScript for any length of time, you're familiar with this pattern: you often need to assign a value to a variable based on its current state—whether it's missing, falsy, or already has a truthy value. It's a fundamental part...
Mohamed Jubair
@mjubair
Markdown supported · ⌘↵ to post
Knowband Plugins
Really clear and practical breakdown, loved how you showed real-world cases where ||= can actually backfire and ??= saves the day. It’s the kind of JavaScript detail that quietly levels up everyday coding.
Knowband Plugins
Really clear and practical breakdown, loved how you showed real-world cases where ||= can actually backfire and ??= saves the day. It’s the kind of JavaScript detail that quietly levels up everyday coding.