I just want to say that I really appreciated this kata, as it gave me an opportunity to learn a JavaScript feature that I wasn't already familiar with. I use stream functions all the time in my Node development work, but I have never really thought about how to generate them before. Very satisfying to put it together.
Whenever I run into this problem, I just add a log statement in the function that will show me what the value is from the test. For JavaScript, this was:
log.debug(phoneNumber);
Attempt to pass again and you will see the test value along with the pass/fail response.
Difficult
Despite the shortness of the solution, I can't say it is the best practice because there is a performance problem.
I just want to say that I really appreciated this kata, as it gave me an opportunity to learn a JavaScript feature that I wasn't already familiar with. I use stream functions all the time in my Node development work, but I have never really thought about how to generate them before. Very satisfying to put it together.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
"rather straight forward"
I was more asking for the thought process which was interesting me
Same thing
Where does the %3600/60 come from? Isn't /60%60 rather straight forward?
what the magic
Whenever I run into this problem, I just add a log statement in the function that will show me what the value is from the test. For JavaScript, this was:
log.debug(phoneNumber);
Attempt to pass again and you will see the test value along with the pass/fail response.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution