Région de recherche :

Date :

Images

https://developer.mozilla.org › ... › Web › JavaScript › Reference › Operators › Nullish_coalescing

Nullish coalescing operator (??) - JavaScript | MDN - MDN Web Docs

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 operand.

https://en.wikipedia.org › wiki › Null_coalescing_operator

Null coalescing operator - Wikipedia

Learn about the null coalescing operator, a binary operator that returns the left operand if it is not null, and the right operand otherwise. See examples of its usage in various programming languages, such as C#, PHP, JavaScript, and more.

https://developer.mozilla.org › ... › Web › JavaScript › Reference › Operators › Nullish_coalescing

Opérateur de coalescence des nuls (Nullish coalescing operator)

L'opérateur de coalescence des nuls (??), est un opérateur logique qui renvoie son opérande de droite lorsque son opérande de gauche vaut null ou undefined et qui renvoie son opérande de gauche sinon.

https://learn.microsoft.com › ... › language-reference › operators › null-coalescing-operator

?? Opérateurs ??=, opérateurs de coalescence nulle - C# reference

Les opérateurs « ?? » et « ??= » sont les opérateurs de coalescence nulle C#. Ils retournent la valeur de l’opérande gauche s’il n’est pas null. Sinon, ils retournent la valeur de l’opérande droit.

https://kodify.net › csharp › operators › null-coalescing-operator

C#'s null-coalescing operator (??) explained - Kodify

The null-coalescing operator (??) is like a shorthand, inline if/else statement that handles null values. This operator evaluates a reference value and, when found non-null, returns that value. When that reference is null, then the operator returns another, default value instead. The null-coalescing operator has the following default pattern:

https://fr.javascript.info › nullish-coalescing-operator

L'opérateur de coalescence des nuls - JavaScript

L’opérateur de coalescence des nuls ?? fournit un moyen court de choisir une valeur “définie” à partir d’une liste. Il est utilisé pour attribuer des valeurs par défaut aux variables : // configurer height = 100, si height est null ou undefined. height = height ?? 100;

https://dev.to › homolibere › null-coalescing-operator-in-c-3kjk

Null Coalescing (??) Operator in C# - DEV Community

Learn how to use the C# Null Coalescing Operator (??) to handle null values in a concise and readable way. See examples of assigning default values, returning values directly, and using nullable types with the operator.

Null Coalescing (??) Operator in C# - DEV Community

https://stackoverflow.com › questions › 446835

null coalescing operator - What do two question marks together mean in ...

In the simplest terms, two question marks are called the "null coalescing operator", which returns the first non-null value from the expression chain. E.g. if you are taking a value from a nullable object and assigning it to a variable which is not nullable, then you can use this operator. i.e.

null coalescing operator - What do two question marks together mean in ...

https://javascript.info › nullish-coalescing-operator

Nullish coalescing operator - The Modern JavaScript Tutorial

Learn how to use the ?? operator to get the first defined value from a list, or provide a default value when a variable is null or undefined. Compare it with the || operator and see examples, precedence and limitations.