Confirm the Ending
function confirmEnding(str, target) {
if(str.slice(-target.length, str.length) == target) return true
return false;
}
confirmEnding("Bastian", "n");
function confirmEnding(str, target) {
if(str.slice(-target.length, str.length) == target) return true
return false;
}
confirmEnding("Bastian", "n");