Split and Join Methods | JavaScript Tutorial | Usage and Implementation step by step guide

preview_player
Показать описание
In this video I talk about split and join - two popular JavaScript methods that are the opposites of each other

0:00 - Intro
0:11 - How to use split
0:42 - How to use join
1:12 - Chaining methods together
2:05 - Implementing your own split method
4:28 - Implementing your own join method
Рекомендации по теме
Комментарии
Автор

200 subs! I saw 194 in the morning. Closer and closer to 1K day by day :)

WailGree
Автор

Some of you are thinking: "Dude, .split() is not an array method".

And yes, it's true - .split() is a string method. BUT because it returns an array, it's often used together with other array methods like filter, map, reduce etc. That's why I makes sense to me to include it in the array method series.

theadimar
Автор

Split can split by string of any length, but from the video and your implementation seems like it should be a single char.
Also would be nice to tell about splitting by empty string and difference with spread operator.
Splitting by regexp is interesting too.
PS: The last section title has a misprint again.

QwDragon