SyntaxError: Unexpected identifier

Hi everyone,

I have a problem with my code and I can´t see the error. Could you help me?

get games(){return this._games;},
^^^
SyntaxError: Unexpected identifier

const team = {

_players: [

{ firstName: ‘Pablo’,

lastName: ‘Sanchez’,

age: 11},

{ firstName: ‘Juan’,

lastName: ‘Perez’,

age: 12},

{ firstName: ‘Miki’,

lastName: ‘Sanz’,

age: 10},

],

_games: [

{opponent: ‘Broncos’,

teamPoints: 42,

opponentPoints: 27

},

{opponent: ‘Letos’,

teamPoints: 24,

opponentPoints: 48

},

{opponent: ‘tracos’,

teamPoints: 39,

opponentPoints: 37}

],

get players(){return this._players;}

get games(){return this._games;},

};

here:

get players(){return this._players;}

you miss a comma at the end

when having syntax errors, always check the line above as well

Thank you :slight_smile: