You can call any of the methods of the String object on a string literal value-JavaScript automatically converts the string literal to a temporary String object, calls the method, then discards the temporary String object.
Chacune des méthodes de l'objet String peut être utilisée sur une valeur qui est un littéral de chaîne de caractères (pour ce faire, JavaScript convertit automatiquement le littéral en un objet String temporaire, appelle la méthode voulue puis supprime l'objet temporaire).
You use literals to represent values in JavaScript.
Les littéraux sont utilisés pour représenter des valeurs en JavaScript.
This includes temporary variables, flow controls, and directly referencing JavaScript values in scope.
Cela inclut les variables temporaires, le contrôle de flux et les valeurs JavaScript directement référencées dans la portée.
Choose the card value - Gift Card JavaScript seems to be disabled in your browser.
Carte à montant personnalisé - Carte cadeau Javascript est désactivé dans votre navigateur.
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.