app/scripts/core/gameCoordinator.js
/**
   * Displays a rolling log of the seven most-recently eaten fruit
   * @param {String} rawImageSource
   */
Displays a rolling log of the seven most-recently eaten fruit
@param {String} rawImageSource
Displays a rolling log of the seven most - recently eaten fruit @param { String } rawImageSource
updateFruitDisplay(rawImageSource) {
    const parsedSource = rawImageSource.slice(
      rawImageSource.indexOf('(') + 1,
      rawImageSource.indexOf(')'),
    );
    if (this.fruitDisplay.children.length === 7) {
      this.fruitDisplay.removeChild(this.fruitDisplay.firstChild);
    }
    const fruitPic = document.createElement('img');
    fruitPic.setAttribute('src', parsedSource);
    fruitPic.style.height = `${this.scaledTileSize * 2}px`;
    this.fruitDisplay.appendChild(fruitPic);
  }
updateFruitDisplay ( rawImageSource ) { const parsedSource = rawImageSource . slice ( rawImageSource . indexOf ( '(' ) + 1 , rawImageSource . indexOf ( ')' ) , ) ; if ( this . fruitDisplay . children . length === 7 ) { this . fruitDisplay . removeChild ( this . fruitDisplay . firstChild ) ; } const fruitPic = document . createElement ( 'img' ) ; fruitPic . setAttribute ( 'src' , parsedSource ) ; fruitPic . style . height = ` ${ this . scaledTileSize * 2 } ` ; this . fruitDisplay . appendChild ( fruitPic ) ; }
Displays a rolling log of the seven most-recently eaten fruit
 @param {String} rawImageSource
Displays a rolling log of the seven most - recently eaten fruit @param { String } rawImageSource