How do you split a string at certain character numbers in javascript?
javascript
Solution
Yes, you could use:
var str = "hello";
// returns ["h", "e", "l", "l", "o"]
var arr = str.split( '' );
Problem
I want a string split at every single character and put into an array. The string is: ``` var string = "hello"; ``` Would you use the `.split()` ? If so how?