Posts by Gabriel • 29 points
2 posts
-
0
votes1
answer48
viewsQ: Fetch values in an array with a condition
Well I have a Queue ( that is a collection of players) class Queue { constructor() { this.players = []; } // addPlayers add multiple players into queue addPlayers(players) { this.players =…
javascriptasked Gabriel 29 -
1
votes1
answer83
viewsQ: Class javascript
Hello I’m with this error when trying to model a class in javascript: Player.makePlayer(player,1) ^ TypeError: Player.makePlayer is not a function class player: class Player { constructor() {…