Last active
June 3, 2020 14:33
-
-
Save bobdobbalina/142f0cd2fe36e322619a441b7dd77f50 to your computer and use it in GitHub Desktop.
Javascript: Merge several objects together
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
| const user = { | |
| name: 'John Ludwig', | |
| gender: 'Male' | |
| }; | |
| const college = { | |
| primary: 'Mani Primary School', | |
| secondary: 'Lass Secondary School' | |
| }; | |
| const skills = { | |
| programming: 'Extreme', | |
| swimming: 'Average', | |
| sleeping: 'Pro' | |
| }; | |
| const summary = { ...user, ...college, ...skills }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment