Tell us what’s happening:
Not sure why this is failing the tests, as it seems to fulfill each of the tasks.
Your code so far
let checked;
let checker;
function confirmEnding(checked, checker) {
if (checker === (checked.slice(-(checker.length)))) {
return("true");
}
else {
return("false")
}
}
console.log(confirmEnding("Connor", "n"))
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36
Challenge Information:
Build a Confirm the Ending Tool - Build a Confirm the Ending Tool