I think that there could be a little more explanation for how to the example table was created. At least a link to a resource for anyone that doesn’t know the math fundamentals. Also, I think there is a typo in the first line, “plan” should be “plane”.
Does, "expected [ '1', '2', '3' ] to deeply equal [ 1, 2, 3 ]" mean, "Your return value should be '[ 1, 2, 3 ]' but instead it was '[ '1', '2', '3' ]' they need to be a deep equal"?
One of the tests is "assert.deepEqual(uniqueInOrder(['1', '2', '3']), [1,2,3])" Why? It doesn't fit the description requirements. Also, the examples do not show an array of strings being converted to numbers. If this is intentional it ought to be listed in the description as a requirement or at least show in the examples. Or maybe it's a typo in the test code? IDK.
Daily. Every day you get p/360 percent to the amount in your account.
Yes, in a calendar year of 365 days you will accumulate more than p.
Is this daily compound interest or annual?
Typo corrected.
I think that there could be a little more explanation for how to the example table was created. At least a link to a resource for anyone that doesn’t know the math fundamentals. Also, I think there is a typo in the first line, “plan” should be “plane”.
Thank you!
Yes, that's what it means.
expected what your function returned to deeply equal the expected value
.I guess I'm misunderstanding the message.
Does, "expected [ '1', '2', '3' ] to deeply equal [ 1, 2, 3 ]" mean, "Your return value should be '[ 1, 2, 3 ]' but instead it was '[ '1', '2', '3' ]' they need to be a deep equal"?
No, there is no such test, read the error message:
You returned
[ '1', '2', '3' ]
that's not the input value and there is no conversion required anywhere, your code is wrong.One of the tests is "assert.deepEqual(uniqueInOrder(['1', '2', '3']), [1,2,3])" Why? It doesn't fit the description requirements. Also, the examples do not show an array of strings being converted to numbers. If this is intentional it ought to be listed in the description as a requirement or at least show in the examples. Or maybe it's a typo in the test code? IDK.