#optionalchaining

JavaScriptBuzzJavaScriptBuzz
2026-02-04

Optional Chaining vs Try-Except: Null Safety Battle

JavaScript's ?. operator vs Python's try-except. Which language handles null/undefined more elegantly? Mind = blown!

youtube.com/watch?v=75DG9QlcvFM

Turbo Learn PHPTurboLearnPHP
2026-01-30

Null Coalescing vs Optional Chaining: Null Safety War

PHP's ?? operator vs JavaScript's ?. operator. Which language handles null/undefined more elegantly? This comparison is INSANE!

youtube.com/watch?v=iC8vLJnRUHk

JavaScriptBuzzJavaScriptBuzz
2026-01-20

Optional Chaining ?. vs Null Coalescing ??: GAME CHANGER!

JavaScript's ?. operator vs PHP's ?? operator - which saves more lines of code? INSANE!

youtube.com/watch?v=7FcbUHkVC1s

2024-12-17

#TIL #JavaScript #OptionalChaining "short circuits" the rest of the evaluation so you can safely write `a?.b.c()` (no need for `a?.b?.c()`).

Personally I find it kind of confusing that introducing parens or a variable changes behavior, but I can see the reasoning behind it.

github.com/tc39/proposal-optio

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst