Intermediate Algorithm Scripting: Pig Latin: suggestion for hints section

Intermediate Algorithm Scripting: Pig Latin: suggestion for hints section
0
#1

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?

#2

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.

#3

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

#4

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

#5

Whoa thanks, I’ll give it a shot