If I do the following it gives me, in console.log, the values I want.
        var q;
        $.get('/ajax_subscribers', { code: 'qyhskkcnd'},
            function(returnedData){
                q = returnedData;
                console.log(q);
            });
But if I do this
        var q;
        $.get('/ajax_subscribers', { code: 'qyhskkcnd'},
            function(returnedData){
                q = returnedData;
            });
        console.log(q);
q has no value and is an undefined value? Why can't I set returnedData as public?
 
     
     
    