Converting a String into an array using JavaScript

preview_player
Показать описание
To convert a string into an array use the split() function.

This "splits" each character in a string as an indexed item within an array.

Moreover, this enables a coder to iterate through the now converted array.

Once the desired operation is complete, in our example we log the characters at each index, rejoin the "split" array using the join() method.

This re-unites each character into one complete string data type.

Best,

Fido

-----------------------------------------------------------------------------------------
Follow me on instagram 📸 : @selftaughthustle
Рекомендации по теме
Комментарии
Автор

What if i want to seperate all letters and Numbers from other characters in an array(example : -, ?, :, )

BlankFPS