I tried this code and it passed now,the second function just to log “true” ,“false”
confirmEnding("Bastian", "n") should return true.
Passed:confirmEnding("Congratulation", "on") should return true.
Passed:confirmEnding("Connor", "n") should return false.
Passed:confirmEnding("Walking on water and developing software from a specification are easy if both are frozen", "specification") should return false.
Passed:confirmEnding("He has to give me a new name", "name") should return true.
Passed:confirmEnding("Open sesame", "same") should return true.
Passed:confirmEnding("Open sesame", "sage") should return false.