Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

Well done!

You have completed Object-Oriented JavaScript: Challenge!

Instruction

Build the switchPlayers() Method

Assignment: Write a method called switchPlayers() inside the Game class according to the requirements and guidelines below. Requirements and Guidelines for switchPlayers() Method /** * Switches active player. */ This method should receive no arguments. This method should not return anything. Inside the method, iterate through the array of Players (Look closely at the Game class co...