The This operator allows evaluating
expressions that produce a value into places where an expression that evaluates to The It should be noted that the precedence of the ExamplesImmediately Invoked Function ExpressionsWhen using an immediately-invoked function expression, the
In order for the function to be parsed as an
expression, the Of all the unary operators,
This
is a bit longer than wrapping the function expression in parentheses, which has the same effect of forcing the
JavaScript URIs When a
browser follows a
Note: Non-leaking Arrow FunctionsArrow functions introduce a short-hand braceless syntax that returns an expression. This can cause unintended side effects by returning the result of a function call that previously returned nothing. To be safe, when the return value of a function is not intended to be used, it can be passed to the void operator to ensure that (for example) changing APIs do not cause arrow functions' behaviors to change.
This ensures the return value of Specifications
Browser compatibilityBCD tables only load in the browser See also |