By using the 'join' method, you are able to convert an Array into a String, formatted the way you like. This is done using a separator and it is common to see the elements comma separated.
In this video we look at providing your own custom separator and also touching on the default separator, the comma.
For your reference:
https://developer.mozilla.org/en-US/d...
If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
Watch video Array 'join' method in Javascript (Array.prototype.join) online, duration hours minute second in high quality that is uploaded to the channel dcode 26 December 2017. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 4,906 times and liked it 80 visitors.