Update solution.md

This commit is contained in:
koala-lava 2019-12-01 20:13:36 +07:00 committed by GitHub
parent d43276a7f3
commit 0de5046a40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,7 +31,7 @@ function makeUser(){
alert( makeUser().name ); // Error: Cannot read property 'name' of undefined
```
As you can see the result of `alert( makeUser().name )` is the same as `alert( user.ref.name )`
As you can see the result of `alert( makeUser().name )` is the same as the result of `alert( user.ref.name )` from the previous example.
Here's the opposite case: