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:
parent
f2e27fd449
commit
397a3aff4e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue