Ruby - String Operations
In Ruby, what is the result of calling
split on the string "dog-cat-mouse" with the argument "-"?split on the string "dog-cat-mouse" with the argument "-"?split method divides a string into an array based on the delimiter provided.split("-") on "dog-cat-mouse" splits the string at each dash.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions