About 1,540 results
Open links in new tab
  1. ?? and ??= operators - null-coalescing operators - C# reference

    Jan 24, 2026 · The null-coalescing operator ?? returns the value of its left-hand operand if it's not null. Otherwise, it evaluates the right-hand operand and returns its result.

  2. Nullish coalescing operator (??) - JavaScript - MDN

    Aug 26, 2025 · The nullish coalescing (??) operator is a logical operator that returns its right-hand side operand when its left-hand side operand is null or undefined, and otherwise returns its left-hand side …

  3. Null coalescing operator - Wikipedia

    The null coalescing operator is a binary operator that is part of the syntax for a basic conditional expression in several programming languages, such as (in alphabetical order): C# [1] since version …

  4. Null-Coalescing Operator in C# - GeeksforGeeks

    Oct 23, 2025 · The null-coalescing operator (??) in C# is used to handle null values efficiently by providing a fallback or default value. It returns the value of its left-hand operand if it is not null, …

  5. Null operators in C# - C# | Microsoft Learn

    May 11, 2026 · If you're new to programming, start with the Get started tutorials first. For the complete operator reference, see Member access operators and null-coalescing operators in the language …

  6. When should I use ?? (nullish coalescing) vs || (logical OR)?

    The ?? operator was added to TypeScript 3.7 back in November 2019. And more recently, the ?? operator was included in ES2020, which is supported by Node 14 (released in April 2020). When the …

  7. Nullish Coalescing Operator (??) in TypeScript - GeeksforGeeks

    Jul 23, 2025 · The nullish coalescing (??) operator is a logical operator in TypeScript that returns its right-hand side operand if the left-hand side operand is null or undefined; otherwise, it returns the left …

  8. C# Null-Conditional (?.) & Null-Coalescing (??) Operators Explained

    Learn how C#'s null-conditional and null-coalescing operators can help you write cleaner, more robust code by gracefully handling null values.

  9. C# Null Coalescing (??) operator - Medium

    Jul 19, 2024 · The null coalescing operator (??) in C# is a convenient way to handle null values in expressions. It checks whether its left-hand operand is null and, if so, evaluates and returns the right …

  10. Null Coalescing Operator - Salesforce Developers

    The null coalescing operator can be used to gracefully deal with the case where the query doesn’t return any rows. If a SOQL query is used as the left-hand operand of the operator and rows are returned, …