Skip to content

Commit 1413e82

Browse files
authored
Task #3 from callforward
https://t.me/callforward/7
1 parent 18d0752 commit 1413e82

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

topics/passing-by-value-and-by-reference.md

+16-1
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,19 @@ var bar = new Person("bar");
9090

9191
console.log(foo.options.name);
9292
console.log(bar.options.name);
93-
```
93+
```
94+
95+
---
96+
97+
what would be the output ?
98+
99+
```javascript
100+
var a = {};
101+
102+
(function b ( a ) {
103+
a.a = 10;
104+
a = null;
105+
})( a );
106+
107+
console.log(a);
108+
```

0 commit comments

Comments
 (0)