Which approach is the best

HI,
often time they’re proposing it some method to use in the doc, like Math.cos(), etc.
Sometimes I have the solution without the method they propose to use to help me.
I have 2 ways to do the same thinks, with a different pseudo code.
wich one is the best, use the method they give us or to do on my way?

Thanks

do it anyway you want and then read up their suggestion methods

If you can accomplish the same end goal using a method that is easier or which makes more sense to you, then do it. The “best practice” way isn’t the only way, especially when you’re still learning. Experimentation pays dividends.

1 Like