Manipulating Strings
Let’s learn some methods that could be used to manipulate the string in JavaScript.
We'll cover the following
Turning a string into an array
The JavaScript method Array.from()
can be used to turn a string into an array. This array can further be traversed with the forEach()
method. Here’s an example where the string letters are displayed one by one.”
Get hands-on with 1400+ tech skills courses.