Tell us what’s happening:
Hello everyone!
I think I have found a bug in the tests.
I was able to pass the challenge with the code provided below, although it clearly does not meet the matching criteria.
I also tried this code in the beta version, and it was successful as well.
I thought it was worth pointing out.
Best regards.
My code so far
function confirmEnding(str, target) {
// "Never give up and good luck will find you."
// -- Falcor
return str[str.length-target.length] === target[0];
}
confirmEnding("Bastian", "ikz");
Link to the challenge:
https://www.freecodecamp.org/challenges/confirm-the-ending