Facebook
Twitter
LinkedIn

Fonction String()

La fonction String() permet de convertir la valeur d’un objet (date, booléen, number) en une chaîne.

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
let nb1= 3;
document.write(String(nb1) + 2);
let nb1= 3; document.write(String(nb1) + 2);
let nb1= 3;
document.write(String(nb1) + 2);

Affichage

32

Voir aussi : Number()parseInt()parseFloat()

A lire aussi

tutowebdesign

Afficher du contenu au scroll

Afficher du contenu au scroll Voici un effet impressionnant et pourtant très facile à mettre en place sur vos pages. Le principe consiste à faire

Lire »