Question: JavaScript Program Modify the Club constructor function, add a property called members which contains an empty Array. Then make a new Club(computer). Add john and
JavaScript Program
Modify the Club "constructor" function, add a property called members which contains an empty Array. Then make a new Club("computer"). Add "john" and then "fred" to the members array of this new Club object you created. Then run console.log() on the object you created.
Output:

console.log() Club (instance) ["name": "computer", "members": ["john", "fred"J
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
