Intermediate Algorithm Scripting: Pig Latin: suggestion for hints section

Hint # 3, basic code solution, and intermediate code solution employ a substr() function.

However, MDN advises against:

Warning: Although String.prototype.substr(…) is not strictly deprecated (as in “removed from the Web standards”), it is considered a legacy function and should be avoided when possible. It is not part of the core JavaScript language and may be removed in the future. If at all possible, use the substring() method instead.

Maybe it should be updated?

Thanks for the heads-up. Feel free to open a bug on freeCodeCamp’s Github about this issue, or if you’re feeling more adventurous, submit a PR to fix the guide article. If you do the latter, do make sure to test your solution first, since String.prototype.substring does behave differently than String.prototype.substr.

Thanks! I would love to contribute but last time I tried Github overwhelmed me. Can be pretty daunting for a first timer.

Make sure to read through the following before working on PRs for the Guide articles.

Whoa thanks, I’ll give it a shot