update
This commit is contained in:
parent
962caebbb7
commit
87bf53d076
1825 changed files with 94929 additions and 0 deletions
18
1-js/5-functions-closures/7-with/1-with-function/task.md
Normal file
18
1-js/5-functions-closures/7-with/1-with-function/task.md
Normal file
|
@ -0,0 +1,18 @@
|
|||
# With + функция
|
||||
|
||||
[importance 5]
|
||||
|
||||
Какая из функций будет вызвана?
|
||||
|
||||
```js
|
||||
function f() { alert(1) }
|
||||
|
||||
var obj = {
|
||||
f: function() { alert(2) }
|
||||
};
|
||||
|
||||
with(obj) {
|
||||
f();
|
||||
}
|
||||
```
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue