Merge pull request #2720 from odsantos/object-references

Update URL.
This commit is contained in:
Ilya Kantor 2021-10-10 18:38:19 +03:00 committed by GitHub
commit 9e4a1e9428
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -133,7 +133,7 @@ clone.name = "Pete"; // changed the data in it
alert( user.name ); // still John in the original object
```
Also we can use the method [Object.assign](mdn:js/Object/assign) for that.
Also we can use the method [Object.assign](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign) for that.
The syntax is: