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.
In Ausdrücken mit numerischen und Zeichenfolgenwerten und dem +-Operator konvertiert JavaScript numerische Werte in Zeichenfolgen. Betrachten Sie beispielsweise die folgenden Anweisungen
In expressions involving numeric and string values with the + operator, JavaScript converts numeric values to strings. For example, consider the following statements
Das Aufrufen der JavaScript Date Funktion (z. B. ohne den new Operator) gibt einen String, der das aktuelle Datum und die aktuelle Zeit repräsentiert, zurück. Eigenschaften
In a non-constructor context (i.e., without the new operator), Number can be used to perform a type conversion. Properties
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.