0
Q:

how to split string into characters ruby

string = "hey there"
string.chars #=> ["h", "e", "y", " ", "t", "h", "e", "r", "e"]
#OR
string.split("")
0

New to Communities?

Join the community