const getUserCoins = function(firstToUpper) {
    var getUserCoinsSql = `SELECT * FROM roulettetabelle WHERE Name = "${firstToUpper}"`
    
    con.query(getUserCoinsSql, function(err, result) {
        if (err) throw err;
        var resultString = JSON.stringify(result);
        var coinsPart = resultString.split(',"')[1]
        coins = parseInt(coinsPart.replace('Coins":', ""));
    });
}
Hello I want the function to return the value of coins... I dont understand how to do it
