Update task.md

If it's not mentioned, the reader could not change code inside showStep() and then, showStep() could be just the last call of the statement.
This commit is contained in:
Mau Di Bert 2019-01-18 09:59:23 -03:00 committed by GitHub
parent f2e27fd449
commit 397a3aff4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,7 +30,7 @@ ladder.down();
ladder.showStep(); // 1
```
Modify the code of `up` and `down` to make the calls chainable, like this:
Modify the code of `up`, `down` and `showStep` to make the calls chainable, like this:
```js
ladder.up().up().down().showStep(); // 1