Array 'join' method in Javascript (Array.prototype.join)

preview_player
Показать описание
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:

If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
Рекомендации по теме
Комментарии
Автор

Heads up: the video thumbnail is different from the video title and lecture.

AlexTechie
Автор

If I want to change from " dom + nick + sophie " to " dom + nick - sophie " what should I do??

b_tongheng
join shbcf.ru