Write Your JavaScript Code Here

// toLocalstring(): - convert array elements to string const names=["Leclerc","Hamilton","Verstappen","Vettel"] let srt=names.toLocaleString(); console.log(srt); // console.log(typeof(srt));

Output: