Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Why using Math.pow(height,2) over height**2? Genuine question.
that was good way to use math
Honestly think height ** 2 is better. I'll be remembering that!
You have to use
Math.pow()
, notmath.pow()
i tried to use Math.pow(height,2) but it doesent work i have an error says ReferenceError: math is not defined.
perfect as it should be
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I don't see why best practices would have magic numbers instead of descriptive variables.
Please use spoiler flag next time.
This comment is hidden because it contains spoiler information about the solution
my code is better
This comment is hidden because it contains spoiler information about the solution
I wrote it in different lines and it worked fine 🤔