function updateScorePenalty() {
        var penalty = 0;
        if (nextLevel === 1 && ABORT_COUNTER > 1) {
            penalty = ABORT_PENALTY * 2;
        } else if (ABORT_COUNTER !== 0) {
            penalty = ABORT_PENALTY;
        }
        // update score
        score -= penalty;
        return penalty;
    }
/**
     * Allows to update the score with penalty malus if abandon
     * @returns {number}
     */
Allows to update the score with penalty malus if abandon
@returns {number}
Allows to update the score with penalty malus if abandon @returns { number }
function updateScorePenalty() {
        var penalty = 0;
        if (nextLevel === 1 && ABORT_COUNTER > 1) {
            penalty = ABORT_PENALTY * 2;
        } else if (ABORT_COUNTER !== 0) {
            penalty = ABORT_PENALTY;
        }
        score -= penalty;
        return penalty;
    }
function updateScorePenalty ( ) { var penalty = 0 ; if ( nextLevel === 1 && ABORT_COUNTER > 1 ) { penalty = ABORT_PENALTY * 2 ; } else if ( ABORT_COUNTER !== 0 ) { penalty = ABORT_PENALTY ; } score -= penalty ; return penalty ; }
Allows to update the score with penalty malus if abandon
 @returns {number}
Allows to update the score with penalty malus if abandon @returns { number }
// update score