function saveUser(){
  let userName = document.getElementById('user-name').value;
    
  localStorage.setItem(userName,moves);
    
  addUserScore(userName,'',true);
}
//Invoked by save-result button. Adds new user score name and score to localStorage.
Invoked by save-result button. Adds new user score name and score to localStorage.
Invoked by save - result button . Adds new user score name and score to localStorage .
function saveUser(){
  let userName = document.getElementById('user-name').value;
  localStorage.setItem(userName,moves);
  addUserScore(userName,'',true);
}
function saveUser ( ) { let userName = document . getElementById ( 'user-name' ) . value ; localStorage . setItem ( userName , moves ) ; addUserScore ( userName , '' , true ) ; }
Invoked by save-result button.
Invoked by save - result button .