https://developer.mozilla.org › fr › docs › Web › JavaScript › Reference › Operators › void
L'opérateur void - JavaScript | MDN - MDN Web DocsL' opérateur void permet d'évaluer une expression donnée et de renvoyer undefined. Exemple interactif. Syntaxe. js. void expression; Description. Cet opérateur permet d'évaluer des expressions retournant une valeur là où on attend une expression qui vaut undefined.
https://developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Operators › void
void operator - JavaScript | MDN - MDN Web DocsThis operator allows evaluating expressions that produce a value into places where an expression that evaluates to undefined is desired. The void operator is often used merely to obtain the undefined primitive value, usually using void (0) (which is equivalent to void 0).
https://stackoverflow.com › questions › 666936
What is the point of void operator in JavaScript? - Stack OverflowThe JavaScript, the void operator is used to explicitly return the undefined value. It's a unary operator, meaning only one operand can be used with it. You can use it like shown below — standalone or with a parenthesis. void expression; void(expression); Lets see some examples:
https://www.w3schools.com › jsref › jsref_operators.asp
JavaScript Operators Reference - W3SchoolsThe void operator evaluates an expression and returns undefined. This operator is often used to obtain the undefined primitive value, using "void(0)" (useful when evaluating an expression without using the return value).
The void operator evaluates the given expression and then returns undefined. Syntax void expression Description. This operator allows evaluating expressions that produce a value into places where an expression that evaluates to undefined is desired.
L'opérateur void permet d'évaluer une expression donnée et de renvoyer undefined. Syntaxe void expression Description. Cet opérateur permet d'insérer des expressions ayant des effets de bord là où on attend une expression qui vaut undefined.
https://masteringjs.io › tutorials › fundamentals › void
What Does void 0 Do in JavaScript? - Mastering JSThe void operator in JavaScript evaluates an expression and returns undefined. At first glance, this operator doesn't seem useful, but there are 3 cases where you may see the void operator in practice.
https://www.geeksforgeeks.org › what-is-the-use-of-the-void-operator-in-javascript
What is the use of the Void Operator in JavaScript - GeeksforGeeksThe void operator in JavaScript is like a special command that tells the computer to do something but not worry about what comes back. It’s often used when you want to make a clickable link on a website that doesn’t take you to a new page. Instead of saying “go nowhere,” you use ‘void(0)’ in the link, and it makes sure ...
https://www.freecodecamp.org › news › javascript-void-keyword-explained
JavaScript Void 0 – What Does javascript:void(0); Mean?In this simplified article, we've learned what the void operator is, how it works, and how it is used with the javascript: pseudo URL for href attributes of links. This ensures that a page does not navigate to another page or reload the current page when clicked.
The void operator evaluates the given expression and then returns undefined. Syntax void expression Description. This operator allows inserting expressions that produce side effects into places where an expression that evaluates to undefined is desired.