Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Last active August 26, 2020 11:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/b86969da5fec0cff844c2010b3f029fc to your computer and use it in GitHub Desktop.
Save codecademydev/b86969da5fec0cff844c2010b3f029fc to your computer and use it in GitHub Desktop.
Codecademy export
const team = {
_players : [{firstName:'Di',
lastName:' Maria' ,
age: 30,
firstName: 'Kylian',
lastName: ' Mbappe' ,
age: 21,
firstName: 'Neymar',
lastName: ' Junior' ,
age: 27,}
],
_games: [{opponent: 'Bayern Munich',
teamPoints: 0,
opponentPoints: 1,
opponent: 'Monaco',
teamPoints: 3,
opponentPoints: 0,
opponent: 'Lyon',
teamPoints: 2,
opponentPoints: 1}],
get players(){
return this._players;
},
get games() {
return this._games;
},
};
console.log(team.players)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment