Object Project : Team Stats

const team = {
_players : [
{firstName: ‘Pete’, lastName: ‘Wheeler’, age: 54},
{firstName: ‘Ruhi’, lastName: ‘Vora’, age: 71},
{firstName: ‘Kanya’, lastName: ‘Gomez’, age: 28}
] ,
_games : [
{opponent: ‘Rutik’, teamPoints: 8, opponentPoints: 9},
{opponent: ‘Varun’, teamPoints: 6, opponentPoints: 2},
{opponent: ‘Siddharth’, teamPoints: 5, opponentPoints: 7}
] ,
get players () {
return this._players ;
},
get games () {
return this._games ;
},
addPlayer(newFirstName, NewLastName, newAge){
const player = {
firstName : newFirstName,
lastName : NewLastName,
age : newAge
}
this.players.push(player);
},
addGame (newOpponent, newTeamPoints, newOpponentPoints) {
let game = {
opponent : newOpponent ,
teamPoints : newTeamPoints ,
opponentPoints : newOpponentPoints
}
this.games.push(game)
}
};

team.addPlayer(‘Bugs’,‘Bunny’,76);
console.log(team.players);

team.addGame(‘Titans’,7,4);
console.log(team.games);

do you want help with something? Is there a specific error or problem?
Also, use the </> button and paste your code on the lines between the ``` and ``` to preserve the formatting of the code in the post.