Created
March 26, 2020 20:23
-
-
Save edsonmgoz/e9801b453c696d832baf107f090b5b0e to your computer and use it in GitHub Desktop.
// source https://jsbin.com/toheroz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| <script id="jsbin-javascript"> | |
| let object = { | |
| clave: 3 | |
| }; | |
| let objetTwo = { | |
| otroClave: 4 | |
| }; | |
| console.log(object); | |
| console.log(objetTwo); | |
| let newObject = { | |
| ...object, | |
| ...objetTwo | |
| }; | |
| console.log(newObject); | |
| </script> | |
| <script id="jsbin-source-javascript" type="text/javascript">let object = { | |
| clave: 3 | |
| }; | |
| let objetTwo = { | |
| otroClave: 4 | |
| }; | |
| console.log(object); | |
| console.log(objetTwo); | |
| let newObject = { | |
| ...object, | |
| ...objetTwo | |
| }; | |
| console.log(newObject);</script></body> | |
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let object = { | |
| clave: 3 | |
| }; | |
| let objetTwo = { | |
| otroClave: 4 | |
| }; | |
| console.log(object); | |
| console.log(objetTwo); | |
| let newObject = { | |
| ...object, | |
| ...objetTwo | |
| }; | |
| console.log(newObject); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment