Every object type has a built-in valueOf method, which JavaScript calls whenever it needs to convert an object to a primitive value.
Jedes Objekt besitzt eine integrierte valueOf-Methode, die JavaScript aufruft, wenn es ein Objekt in einen primitiven Wert umwandeln möchte.
You rarely need to invoke the valueOf method yourself. JavaScript automatically invokes it when encountering an object where a primitive value is expected.
Sie brauchen die valueOf-Methode in der Regel nur selten aufzurufen. JavaScript ruft sie automatisch auf, wenn es ein Objekt an einer Stelle erkennt, an der es einen primitiven Wert erwartet.
In JavaScript, Symbol is one of the primitive values and the Symbol object is a wrapper around a Symbol primitive.
In JavaScript, a String is one of the primitive values and the String object is a wrapper around a String primitive.
In JavaScript ist ein String ein Standard-Objekt. Es is ein primitiver Wert und das String Objekt ist ein wrapper um einen primitiven String.
With the preceding code in place, any time an object of type myNumberType is used in a context where it is to be represented as a primitive value, JavaScript automatically calls the function defined in the preceding code.
Mit dem vorstehenden Code ruft JavaScript jedes Mal, wenn myNumberType in einem Kontext verwendet wird, in dem es als primitiver Wert dargestellt werden muss, automatisch die im vorstehenden Code definierte Funktion auf.
The export statement is used when creating JavaScript modules to export functions, objects, or primitive values from the module so they can be used by other programs with the import statement.
Das import Statement wird verwendet um Funktionen, Objekte und Primitives zu importieren die von einem externen Modul, einem anderen Script, etc. exportiert wurden.
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.