Die folgende Tabelle fasst Javascripts Bitweise Operatoren zusammen: Operator
The following table summarizes JavaScript's bitwise operators: Operator
JavaScript besitzt einen ternären Operator für Vergleichsausdrücke
JavaScript has a ternary operator for conditional expressions
JavaScript verfügt über beides, binäre als auch unäre Operatoren. Zudem existiert ein spezieller ternärer Operator - der Bedingungsoperator.
JavaScript has both binary and unary operators, and one special ternary operator, the conditional operator.
Was ist der!! (nicht) Operator in JavaScript?
What is the!! (not not) operator in JavaScript?
Wir lassen aus und vereinfachen aus sehr guten Gründen in sehr vielen anderen Sprachen - obwohl ein etwas anderer Fall, scheint der ternäre Operator in JavaScript ein gutes Beispiel zu sein.
We omit and simplify, for good reason, in a great many other languages-although a bit different, JavaScript's ternary operator looks like a nice example.
Der Bedingungsoperator ist der einzige JavaScript-Operator, der drei Operanden verwendet. Dieser Operator wird oft als Shortcut für die if-Anweisung verwendet.
The conditional operator is the only JavaScript operator that takes three operands. This operator is frequently used as a shortcut for the if statement.
Hinweis: JavaScript hat einen Bitweisen Operator ^ (logisches XOR).
Note: JavaScript also has a bitwise operator ^ (logical XOR).
So ist der arithmetische Shift-Operator bei Java und JavaScript zum Beispiel; wohingegen der logische Rechtsshift > ist.
For example, in Java and JavaScript, the logical right shift operator is >, but the arithmetic right shift operator is.
Beispiel - Ein korrektes Skript, in dem mit dem zentralen JavaScript-Operator String die Variable myvar für das Konsolenfenster formatiert wird
Example-A correct script, in which the JavaScript core operator String is used to format myvar for the Console window
Der void-Operator gibt einen zu bewertenden Ausdruck an, ohne einen Wert zurückzugeben. expression ist ein zu bewertender JavaScript-Ausdruck. Die Klammern um den Ausdruck herum sind optional, es ist jedoch empfehlenswert, sie zu setzen.
The void operator specifies an expression to be evaluated without returning a value. expression is a JavaScript expression to parentheses surrounding the expression are optional, but it is good style to use them.
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.