Gibt es mehrere mögliche Zeichenketten, die vom JavaScript-Operator ToString für einen bestimmten Wert erhalten werden könnten, dann muss der Benutzeragent immer die gleiche Zeichenkette für diesen Wert zurückgeben (obwohl er von dem Wert abweichen könnte, den andere Benutzeragenten benutzen).
When there are multiple possible strings that could be obtained from the JavaScript operator ToString for a particular value, the user agent must always return the same string for that value (though it may differ from the value used by other user agents).
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.
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
Other results
In JavaScript ist der bedingte Operator ein nützliches Werkzeug, um prägnanten Code zu schreiben.
In JavaScript, the conditional operator is a useful tool for writing concise code.
Diese spezielle Eigenschaft agiert mit dem JavaScript new operator.
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.
Hinweis: JavaScript hat einen Bitweisen Operator ^ (logisches XOR).
Note: JavaScript also has a bitwise operator ^ (logical XOR).
Der bedingte (ternäre) Operator ist der einzige Operator in JavaScript, welcher drei Operanden annimmt.
The conditional (ternary) operator is the only JavaScript operator that takes three operands.
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
Die Anführungszeichen der Variablennamen mit Ausnahme von fill sind, um zu verhindern, dass JavaScript den Minus-Operator in den Variablennamen (die CSS-Eigenschaften) verarbeiten.
The reason the variable names, except fill, are quoted is to prevent JavaScript from processing the minus operator in the variable names (which are CSS properties).
Wenn JavaScript einen Operator erkennt, wird der betreffende Vorgang ausgeführt, selbst in Zeichenfolgen. Um JavaScript anzuweisen, dass ein Operator als Zeichen behandelt werden soll, fügen Sie vor dem Operator das Escapezeichen hinzu, einen umgekehrten Schrägstrich (\).
When JavaScript sees an operator, it performs the operation, even in strings. To tell JavaScript to treat an operator as a character, add the "escape" character, the backslash (\), in front of the operator.
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.
No results found for this meaning.
Synonyms and analogies of "JavaScript-Operator" in German