Write Your JavaScript Code Here
Run
Copy Code
// toLocalstring(): - convert array elements to string const names=["Leclerc","Hamilton","Verstappen","Vettel"] let srt=names.toLocaleString(); console.log(srt); // console.log(typeof(srt));
Output: