Confirm the Ending - What substr() lesson?

Tell us what’s happening:

I understand I need to use substr() to complete this challenge but there doesn’t seem to be a lesson about this. I have searched on freeCodeCamp and what I find are all 404s. Did this get taken down or am I missing something?

Your code so far

function confirmEnding(str, target) {
  // "Never give up and good luck will find you."
  // -- Falcor
  return str;

confirmEnding("Bastian", "n");

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36 OPR/54.0.2952.51.

Link to the challenge:

At this point you’re probably expected to look up things by yourself, albeit prompted by the challenge

FWIW the MDN site is a great resource for these things!

1 Like