What value is obtained when executing player1.name in the following code?
function Player(name, sport) {
this.name = name;
this.sport = sport;
}
const player1 = new Player('Lionel Messi', 'Soccer');
What value is obtained when executing player1.name in the following code?
function Player(name, sport) {
this.name = name;
this.sport = sport;
}
const player1 = new Player('Lionel Messi', 'Soccer');