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

Instruction

Build the gameOver() Method

Assignment:

  1. Write a method called gameOver() inside the Game class according to the requirements and guidelines below.

Requirements and Guidelines for gameOver() Method

/** 
 * Displays game over message.
 * @param {string} message - Game over message.      
 */
  1. This method should receive one argument message, a string value to be dis...