index.js
/**
 * Resets the current survey
 * @param {boolean} askUser A boolean that represents whether to prompt the user
 */
Resets the current survey
@param {boolean} askUser A boolean that represents whether to prompt the user
Resets the current survey @param { boolean } askUser A boolean that represents whether to prompt the user
function resetSurvey(askUser = true) {
  if (askUser) if (prompt("Type 'reset' to reset the survey") != "reset") return;
  teamMetric.value = "";
  teamMetric.focus();
  if (!askUser) {
    matchCount = parseInt(matchMetric.value) + 1;
    matchMetric.value = matchCount;
  }
  if (isAbsent) toggleAbsent();
  gameMetrics.forEach(metric => metric.reset());
  refreshIcons();
  localStorage.backup = "";
}
function resetSurvey ( askUser = true ) { if ( askUser ) if ( prompt ( "Type 'reset' to reset the survey" ) != "reset" ) return ; teamMetric . value = "" ; teamMetric . focus ( ) ; if ( ! askUser ) { matchCount = parseInt ( matchMetric . value ) + 1 ; matchMetric . value = matchCount ; } if ( isAbsent ) toggleAbsent ( ) ; gameMetrics . forEach ( metric => metric . reset ( ) ) ; refreshIcons ( ) ; localStorage . backup = "" ; }
Resets the current survey
 @param {boolean} askUser A boolean that represents whether to prompt the user
Resets the current survey @param { boolean } askUser A boolean that represents whether to prompt the user