Tell us what’s happening:
Describe your issue in detail here.
I’m using str.slice(-1) === target
Why doesn’t this work? It equates the final element of the str string with target as either true or false. This is what the challenge requests, right?
your function only checks the last char of the string and compare it to the target. You want to check the length of the target and use it as a slice argument. BTW when a boolean must return if its true or false, you can return the boolean directly; no need to tell if its true, return true, if its false, return false.