Update task.md
Grammar
This commit is contained in:
parent
30e3fa7237
commit
cc3c01bd94
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ The task is a little more complex variant of <info:task/question-use-bind>.
|
||||||
|
|
||||||
The `user` object was modified. Now instead of two functions `loginOk/loginFail`, it has a single function `user.login(true/false)`.
|
The `user` object was modified. Now instead of two functions `loginOk/loginFail`, it has a single function `user.login(true/false)`.
|
||||||
|
|
||||||
What to pass `askPassword` in the code below, so that it calls `user.login(true)` as `ok` and `user.login(false)` as `fail`?
|
What should we pass `askPassword` in the code below, so that it calls `user.login(true)` as `ok` and `user.login(false)` as `fail`?
|
||||||
|
|
||||||
```js
|
```js
|
||||||
function askPassword(ok, fail) {
|
function askPassword(ok, fail) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue