Functional Programming: Apply Functional Programming to Convert Strings to URL Slugs, my code seems to work, but the test fails it

Here is what it looks like before running the tests, note the console outputs:

Here is what it looks like after running the tests:

I think that my console.logs show that it passes, am I missing something?

Thanks!

It’s a convention here to paste in your code and post a link to the exercise instead of screenshots.

With that said, you are probably failing one test case where the example string has space infront. Therefore your code will generate a dash in the front when string is returned.

1 Like

Thanks so much, I didn’t notice that leading space, and I’ll be sure to follow convention from here on out.:upside_down_face:

1 Like