function pullName() {

  fetch('/changingPlayerName')
    .then((resp) => resp.json()) // Transform the data into json
    .then(function (data) {
      for (flag of data.player) {
        fullname = flag.player1;
        fn = flag.player2;
      }
      updateName(fullname);
    }).catch(err => console.log(err));
}
/**
 * @function pullName - see who one is playing.
 */
@function pullName - see who one is playing.
@function pullName - see who one is playing .
function pullName() {
  fetch('/changingPlayerName')
    .then((resp) => resp.json()) 
    .then(function (data) {
      for (flag of data.player) {
        fullname = flag.player1;
        fn = flag.player2;
      }
      updateName(fullname);
    }).catch(err => console.log(err));
}
function pullName ( ) { fetch ( '/changingPlayerName' ) . then ( ( resp ) => resp . json ( ) ) . then ( function ( data ) { for ( flag of data . player ) { fullname = flag . player1 ; fn = flag . player2 ; } updateName ( fullname ) ; } ) . catch ( err => console . log ( err ) ) ; }
@function pullName - see who one is playing.
@function pullName - see who one is playing .
// Transform the data into json