2019-12-26
807
#vanilla javascript
Danny Guo
11670
Dec 26, 2019 â‹… 2 min read

Optional chaining and nullish coalescing in JavaScript

Danny Guo Hacking away on sublimefund.org.

Recent posts:

JavaScript’s sort()method: From basics to custom sorting

Discover how to sort arrays in JavaScript using sort() and toSorted(), including customization and language-sensitive sorting techniques.

Joseph Mawa
Mar 7, 2025 â‹… 11 min read
Migrating To Valkey From Redis

Migrating to Valkey from Redis

With Redis’ license change and the launch of Valkey 8.0 as an alternative, this guide covers key differences and migration steps.

Matteo Di Pirro
Mar 6, 2025 â‹… 5 min read
GraphQL Vs. REST APIs: What’s The Difference Between Them

GraphQL vs. REST APIs: What’s the difference between them

Compare GraphQL vs. REST APIs in terms of flexibility, efficiency, versioning, over-fetching, under-fetching, caching, and more.

Esteban Herrera
Mar 5, 2025 â‹… 7 min read
how to hide scrollbars with CSS

How to use CSS to hide scrollbars without impacting scrolling

Learn how to hide the scrollbar in popular web browsers by making use of modern CSS techniques, and dive into some interactive examples.

Fimber Elemuwa
Mar 4, 2025 â‹… 10 min read
View all posts

One Reply to "Optional chaining and nullish coalescing in JavaScript"

  1. You can use optional chaining today in every browser:

    const highTemperature = (((response||{}).data||{}).temperature||{}).current;

Leave a Reply