I am getting this errors
*confirmEnding(“Connor”, “n”) should return false. *confirmEnding("Open sesame", "pen")
should return false.
*confirmEnding(“If you want to save our world, you must hurry. We dont know how much longer we can withstand the nothing”, “mountain”)` should return false.
function confirmEnding(str, target) {
let strPost=str.localeCompare(target)
if(strPost==-1){
return true;
}else if(strPost==1){
return false;
}else if (strPost==0){
return true;
}
confirmEnding("Connor", "n");