Very interesting Kata. I see, here must be Math.random(). But I don't understand where take info about it? Info on MDN not show how to use it in difeerent cases at all! How to learn to deside katas? I dont think, that see solution is good idea, but sometimes otherwise it doesn't work(
I read the hint is bind. I was reading about this method and think I understand it. Any option of solution didn't work. I opened the solution. And I see the most understandable option with "}.bind(this)". I've never seen such syntax "}.methodName"!! How could I guess it is possible??? I'm very sad(
It was difficult, but I liked it!
This comment is hidden because it contains spoiler information about the solution
Very interesting Kata. I see, here must be Math.random(). But I don't understand where take info about it? Info on MDN not show how to use it in difeerent cases at all! How to learn to deside katas? I dont think, that see solution is good idea, but sometimes otherwise it doesn't work(
If you get message about length, than means that the code must be shorter!
Very strange kata. Top solutions doesn't contain "new"( Reading examples in kata and MDN about New didn't help(
I read the hint is bind. I was reading about this method and think I understand it. Any option of solution didn't work. I opened the solution. And I see the most understandable option with "}.bind(this)". I've never seen such syntax "}.methodName"!! How could I guess it is possible??? I'm very sad(
This comment is hidden because it contains spoiler information about the solution
But the salary is always added to the bonus!