Then it's not guarantee because the standard doesn't not guaranteed so, i.e it's implementation specific.
(Speaking of which, there are also some specific peculiarities in V8's Array.prototype.sort method which can be exploited. It has been done in a recent kata.)
Why order is perseived? As i temember no garantee that simple object keys order will be the same in different browsers, hence need to another property in hash - order.
##Hint Take a sheet of paper and with a bit of algebra try to write the product of squared numbers in another way.
Can you explain how should it help? There is neither any product of square numbers in description, or N (which is e^2+F^2) is not product but sum of squares.
This comment is hidden because it contains spoiler information about the solution
How much time have you spent on that? Have you went to the solution by yourself or tried to find these laws?
@compoterguy103
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
Like what? Also, taking into account the vague interview-feeling I wanted to keep here...
Contains ambiguities in the description.
It's harder to fix something what you not understand than write it from scratch someties.
Shouldn't be labeled as
bugs
That's awesome kata, didn't know the answer after 10years of FE experience )
Then it's not guarantee because the standard doesn't not guaranteed so, i.e it's implementation specific.
(Speaking of which, there are also some specific peculiarities in V8's
Array.prototype.sort
method which can be exploited. It has been done in a recent kata.)Ok, what about
no v8
?Because V8's implementation preserves the order.
Why order is perseived? As i temember no garantee that simple object keys order will be the same in different browsers, hence need to another property in hash - order.
For which devil there is a hint
Can you explain how should it help? There is neither any product of square numbers in description, or N (which is e^2+F^2) is not product but sum of squares.