Please read this: https://docs.codewars.com/training/troubleshooting/#post-discourse
This comment is hidden because it contains spoiler information about the solution
While you write the functions that are needed and they return what they should, there is no limit about another functions you could use inside them.
first of all. I have learned so much by atempting this kata! Very challenging in a fun way.
this may be a stupid question but are we allowed to create more functions than the ones given?
Besides the global var my code was completely correct.
The "besides" part makes a big difference tho!
What you first replied with made me more confused...
Oh I am sorry to hear that, because I definitely did not mean to confuse you :) Glad you got it tho!
Just saw your reply. Besides the global var my code was completely correct.
What you first replied with made me more confused... I honestly do appreciate your attempt at help though!
disregard. I just found out i shouldnt use global var in kata
Yes, you did something wrong, and I tried to show you how to figure out what you did wrong. In your VS code, your code also gives wrong answer if you run it like this:
... // todo let data = 10; getDivisorsCnt(data); getDivisorsCnt(data);
Try running this in your VS Code:
console.info(getDivisorsCnt(1)); console.info(getDivisorsCnt(1));
Yes, this happens sometimes when the code is wrong.
Loading collection data...
Please read this: https://docs.codewars.com/training/troubleshooting/#post-discourse
This comment is hidden because it contains spoiler information about the solution
While you write the functions that are needed and they return what they should, there is no limit about another functions you could use inside them.
first of all. I have learned so much by atempting this kata! Very challenging in a fun way.
this may be a stupid question but are we allowed to create more functions than the ones given?
The "besides" part makes a big difference tho!
Oh I am sorry to hear that, because I definitely did not mean to confuse you :) Glad you got it tho!
Just saw your reply. Besides the global var my code was completely correct.
What you first replied with made me more confused... I honestly do appreciate your attempt at help though!
disregard. I just found out i shouldnt use global var in kata
Yes, you did something wrong, and I tried to show you how to figure out what you did wrong. In your VS code, your code also gives wrong answer if you run it like this:
This comment is hidden because it contains spoiler information about the solution
Try running this in your VS Code:
Yes, this happens sometimes when the code is wrong.
This comment is hidden because it contains spoiler information about the solution