Last active
February 2, 2021 05:53
-
-
Save sandrabosk/580f6b66ffd093289617a2a290646108 to your computer and use it in GitHub Desktop.
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
// Given the object 'data', use the object destructuring to be able | |
// to print student first and last name, favorite football club, | |
// as well as the city and the country this student is coming from. | |
// BONUS: Write a function to capitalize all the words that need to be capitalized. | |
const data = { | |
name: { | |
firstName: 'ana', | |
lastName: 'marino', | |
}, | |
isStudent: true, | |
favoriteFootballTeam: 'fc barcelona', | |
hometown: { | |
city: 'buenos aires', | |
country: 'argentina', | |
}, | |
}; | |
// ... your code here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment