Is this a Bug? Javascript is not working as I need it to

Hey could anyone help me figure this out.
The Code did not save but I could take a pic of it, as you can see the slice functions works when I pass arrays that consist only of numbers, but not when I pass arrays that only consist of words. Am I missing something?

Its very difficult to work with a picture.

It looks like you are not calling the function with a value for n in the second function call.

1 Like