Merge pull request #283 from Youmoo/new-js-question

Add a js question
This commit is contained in:
Darcy Clarke 2015-05-04 21:31:07 -04:00
commit 4e1a2e39a3
1 changed files with 7 additions and 0 deletions

View File

@ -205,6 +205,13 @@ foo.push(1);
foo.push(2);
```
*Question: What is the value of `foo.x`?*
```javascript
var foo = {n: 1};
var bar = foo;
foo.x = foo = {n: 2};
```
#### Fun Questions:
* What's a cool project that you've recently worked on?