Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

What is the usage of method toString() in javascript?

user-image
Question ajoutée par mohamed ahmed mahmoud , مصمم مواقع انترنت web designer , conect
Date de publication: 2017/03/15
Sameer Khan
par Sameer Khan , Software And Web Developer , Hocrox infotech

toString() method returns a boolean value as a string. Note: This method is called by JavaScript automatically whenever a boolean is used in a string operation.

var bool = true;

var x = bool.toString();

Syed Hussain Moosa
par Syed Hussain Moosa , Senior Software Engineer , Emirates Airlines

toString() is a function used to convert any value/object into string.

medhatmahmoud mahmoud
par medhatmahmoud mahmoud , Web Designer , Connect Computer Service Co

method toString() converts an array to a string of (comma separated) array values

More Questions Like This

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?