I have the following function:
function charts(a, b, c){
//get the variables of function values and do some stuff with it
}
I get variables through a, b, c already from another function start:
function start(){
    var a = 1;
    var b = 2;
    var c = 3;
 charts(a, b, c);
 }
How can I use the variables of this function inside my function charts:
function values() {
    $.ajax({
        url: site_url + "/?key=XXX&email=" + email + "&values=yes" + '&callback=?',
        type: "GET",
        dataType: 'json',
        success: function (data) {
            value1 = data.value1;
            value2 = data.value2;
            value3 = data.value3;
        }
    });
}
 
    