use array outside the parent function
<p>with this function triggered as a callback</p>

<pre><code> var testing  = []; 
 var vid;

function showMyVideos(data){

        var feed = data.feed; //object "feed"
        var entries = feed.entry || [];   //array "entry"
        var html = ['&lt;ul&gt;'];
        for (var i = 0; i &lt; entries.length; i++){
            entry = entries[i];
            playCount = entry.yt$statistics.viewCount.valueOf() + ' views';
            title = entry.title.$t;

            vid = (getVideoId(entry.link[0].href));
            testing[i] = vid;
            lnk = '&lt;a href = \'' + entry.link[0].href + '\'&gt;link&lt;/a&gt;';
            html.push('&lt;li&gt;', title, ', ', playCount, ', ', vid, ', ', lnk, '&lt;/li&gt;');

        }
        html.push('&lt;/ul&gt;');
        $('#videoResultsDiv').html(html.join(''));


     }
</code></pre>

<hr>

<p>I want to use the "testing" array on other functions, how will I do that?.. I'm frustrated  now, sorry I'm just starting to appreciate JavaScript. I want to perfectly access the array data like when I'm doing on
    console.log(testing)
inside the function.. </p>
