Using different methods to complete scripting challenges

Hi.

I’m about halfway through doing the basic algo scripting section.

Some of them I am completing according to their advice, but others I am completing using my own methods and ignoring the way they suggest.

For example, on the ‘Confirm the Ending’ task, I used charAt() to check whether the endings matched up rather than String.prototype.substr(), which is what they suggested.

Do you think this is OK? Or should I be finishing them in the way that they recommend, because that is the ‘best’ way?

Absolutely! The most important part is that you pass all the tests. You can find solutions to most challenges here on the forum, so you can always compare solutions to see which one is “best”.

1 Like