Open Tttaras1 opened 4 years ago
Hello!
Task 1: • Why are you using apply here?
Task 2: • Your function should show current step with console.log(). Because of what you use return this.step you cant use chaining after this method.
return this.step
• It's not a mistake, but better would be: https://github.com/airbnb/javascript#variables--unary-increment-decrement
Task 3: • You can also use 'reduce' method in your 'ES5' implementation by this way:
Everything done well. Good job!
Okay, thank you for the feedback.
Hello!
Task 1: • Why are you using apply here?![image](https://user-images.githubusercontent.com/43076444/70477359-66083880-1ae1-11ea-9264-30128536f07b.png)
Task 2: • Your function should show current step with console.log(). Because of what you use![image](https://user-images.githubusercontent.com/43076444/70476779-19702d80-1ae0-11ea-86f9-4741a328ee7c.png)
return this.step
you cant use chaining after this method.• It's not a mistake, but better would be:
https://github.com/airbnb/javascript#variables--unary-increment-decrement
Task 3: • You can also use 'reduce' method in your 'ES5' implementation by this way:
![image](https://user-images.githubusercontent.com/43076444/70478053-d6fc2000-1ae2-11ea-91ee-aa5883b0b1c1.png)
Everything done well. Good job!