Ad
  • Default User Avatar

    Thanks a lot!

  • Default User Avatar

    I fully agree with you. I thought the same, when i was resolving this task. And i think the most part of programmers thought the same.

  • Default User Avatar

    Спасибо! Благодаря вашей подсказке решил задание. Хотя, наверное, как и большинство, сначала делал через extends.

  • Custom User Avatar

    OP solved it, closing. (Please type your question in English next time...)

  • Default User Avatar

    The author's explanation is really unclear.
    Guys, attentively read the name of this kata and you will understand what you need to do!
    You need to find the maximum difference between strings' lengths of array one and array two.

  • Default User Avatar

    Thanks for your comment, sir.
    It helped me to resolve this task.
    The author's explanation is really unclear.
    Guys, attentively read the name of this kata and you will understand what you need to do!

  • Default User Avatar

    Thank you very much, sir. You are right. I have changed Node version and my code passed all the tests. I didn't pay attention to it before. Thanks again.

  • Default User Avatar

    it sounds like you are using an old version of Node JS. String.prototype.at() requires Node JS >= 16.6. In the dropdown menu of the trainer, what is the Node version you have selected ?

  • Default User Avatar

    Hi! I got some strange error. In my function i used method of string "str.at()". And in console everything is OK, i got correct results in all cases (i took your examples). But when i tried to test my decision here, i got this error "TypeError: item.at is not a function". Can you tell me please, what is wrong.
    If you need my decision for checking i can provide it.