Ad
  • Custom User Avatar

    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.

  • Custom User Avatar

    Is this daily compound interest or annual?

  • Custom User Avatar

    Typo corrected.

  • Custom User Avatar

    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”.

  • Custom User Avatar

    Thank you!

  • Custom User Avatar

    Yes, that's what it means. expected what your function returned to deeply equal the expected value.

  • Custom User Avatar

    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"?

  • Custom User Avatar

    No, there is no such test, read the error message:

    expected [ '1', '2', '3' ] to deeply equal [ 1, 2, 3 ]
    

    You returned [ '1', '2', '3' ] that's not the input value and there is no conversion required anywhere, your code is wrong.

  • Custom User Avatar

    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.