ToString method in javascript
toString method in javascript
This method returns a string representing the specified array and its elements.
Syntax: toString()
Examples:
// create an array
Const arr = [1,'7c',112,'2b'];
Console.log(arr.toString());
// Expected output
1,7c,112,2b
Comments
Post a Comment