async updateHighscores(score, username, game){
        // Create the URL based on information about the new highscore
        let url = new URL("http://localhost:4500/addhighscore");
        url.searchParams.append("username", username);
        url.searchParams.append("game", game);
        url.searchParams.append("score", score);
        try{
            let response = await fetch(url);
            if (!response.ok){
                throw response;
            }
        }catch(e){
            console.error("Error sending highscore!\n", e);
        }
    }
/**
     * Name: updateHighscores
     * Description: Sends a get request to the server, sending a new highscore
     * Return: None
    */
updateHighscores
Description: Sends a get request to the server, sending a new highscore
Return: None
updateHighscores Description : Sends a get request to the server sending a new highscore Return : None
async updateHighscores(score, username, game){
        let url = new URL("http://localhost:4500/addhighscore");
        url.searchParams.append("username", username);
        url.searchParams.append("game", game);
        url.searchParams.append("score", score);
        try{
            let response = await fetch(url);
            if (!response.ok){
                throw response;
            }
        }catch(e){
            console.error("Error sending highscore!\n", e);
        }
    }
async updateHighscores ( score , username , game ) { let url = new URL ( "http://localhost:4500/addhighscore" ) ; url . searchParams . append ( "username" , username ) ; url . searchParams . append ( "game" , game ) ; url . searchParams . append ( "score" , score ) ; try { let response = await fetch ( url ) ; if ( ! response . ok ) { throw response ; } } catch ( e ) { console . error ( "Error sending highscore!\n" , e ) ; } }
Name: updateHighscores
 Description: Sends a get request to the server, sending a new highscore
 Return: None
Name : updateHighscores Description : Sends a get request to the server sending a new highscore Return : None
// Create the URL based on information about the new highscore