Array scope issue with jQuery : These scope issues is driving me crazy. 

I have

    var foo = ["apples", "bananas", "grapes"];

    $(document).ready(function(){
           $(select).change(function(){
                 console.log(foo);
           })
    });


The array within console log won't be exist. How can I bring it there ?

Hanks