Hello guys im working on a new project with js and i have a problem so i would like to know how do i change variable in anonymous functions
myFunct : function(){
    var name = "Alexander ";
    if(true)
    {
        db.transaction(function(t){
            name = "Stephane"; //How do i change my variable [name] at this level?
            t.executeSql('SELECT * FROM users',[]);
        });
    }
    return name; //this function returns me Alexander and not Stephane
},
 
    