"null co-uh-less" Answer from SquatchyZeke on reddit.com
Reddit
reddit.com โบ r/learnjavascript โบ how do you pronounce the null coalescing operator ??
r/learnjavascript on Reddit: How do you pronounce the null coalescing operator ??
February 19, 2021 -
Like when you're reading code out loud, how do you pronounce ??
Videos
YouTube
youtube.com โบ pronunciation guide
How to Pronounce Coalescing - YouTube
This video shows you how to pronounce Coalescing
Published ย March 2, 2015 Views ย 4K
Cambridge Dictionary
dictionary.cambridge.org โบ pronunciation โบ english โบ coalesce
COALESCE | Pronunciation in English
COALESCE pronunciation. How to say COALESCE. Listen to the audio pronunciation in English. Learn more.
MDN Web Docs
developer.mozilla.org โบ en-US โบ docs โบ Web โบ JavaScript โบ Reference โบ Operators โบ Nullish_coalescing
Nullish coalescing operator (??) - JavaScript | MDN
The nullish coalescing operator treats undefined and null as specific values. So does the optional chaining operator (?.), which is useful to access a property of an object which may be null or undefined.
YouTube
youtube.com โบ programming with avelx
Null coalescing operator - YouTube
Some lovely sugar syntax for PHP developers. Instead of if statements and writing unnecessary code but rather in one line we can optionally define the value ...
Published ย March 29, 2016 Views ย 4K
TypeScript
typescriptlang.org โบ play โบ 3-7 โบ syntax-and-messaging โบ nullish-coalescing.ts.html
TypeScript: Playground Example - Nullish Coalescing
-1; config.active = config.active ?? true; // Current solution config.name = typeof config.name === "string" ? config.name : "(no name)"; config.items = typeof config.items === "number" ? config.items : -1; config.active = typeof config.active === "boolean" ? config.active : true; // Using || operator which could give bad data config.name = config.name || "(no name)"; // does not allow for "" input config.items = config.items || -1; // does not allow for 0 input config.active = config.active || true; // really bad, always true } // You can read more about nullish coalescing in the 3.7 blog post: https://devblogs.microsoft.com/typescript/announcing-typescript-3-7/
Arun Shukla's Blog
shuklathecoder.hashnode.dev โบ nullish-coalescing-operator
Nullish Coalescing Operator ??
February 17, 2023 - So, the nullish coalescing operator is represented with ??. The whole summary for this code is it will return the first argument if it's not null or undefined.
MDN Web Docs
developer.mozilla.org โบ en-US โบ docs โบ Web โบ JavaScript โบ Reference โบ Operators โบ Nullish_coalescing_assignment
Nullish coalescing assignment (??=) - JavaScript | MDN
Nullish coalescing assignment short-circuits, meaning that x ??= y is equivalent to x ??
Wikipedia
en.wikipedia.org โบ wiki โบ Null_coalescing_operator
Null coalescing operator - Wikipedia
October 31, 2025 - As of ColdFusion 11, Railo 4.1, CFML supports the null coalescing operator as a variation of the ternary operator, ?:. It is functionally and syntactically equivalent to its C# counterpart, above. Example: ... Missing values in Apache FreeMarker will normally cause exceptions. However, both missing and null values can be handled, with an optional default value: ... JavaScript's nearest operator is ??, the "nullish ...
GitHub
github.com โบ tc39 โบ proposal-nullish-coalescing
GitHub - tc39/proposal-nullish-coalescing: Nullish coalescing proposal x ?? y
The nullary coalescing operator is intended to handle these cases better and serves as an equality check against nullary values (null or undefined).
Starred by 1.2K users
Forked by 21 users
Languages ย HTML 90.0% | Shell 10.0%
Can I Use
caniuse.com โบ mdn-javascript_operators_nullish_coalescing
JavaScript operator: Nullish coalescing operator (`??`) | Can I use... Support tables for HTML5, CSS3, etc
"Can I use" provides up-to-date browser support tables for support of front-end web technologies on desktop and mobile web browsers.
Top answer 1 of 6
24
To my knowledge, there is no such operator and also no proposal to add one. Instead you can rely on the standard way to check for nullish values: b == null
a = b == null ? b : func(b)
2 of 6
9
This will not answer the question since it was already answered by @str, I'm just posting this here because I don't have enough rep to comment on @Dalou's answer and don't want people to trip on that answer.
a = (b ?? false) && other
Is not the opposite of ??, since a will take the value of b if b is a falsy value other than undefined/null, like '' or 0 for example.
The opposite of ?? should set a to the value of other even if b is '' or 0.