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

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

#1

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!


#2

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.


#3

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: