Why is it, it only works within the function scope while I have this declared it globally
testing = [];
function func1(){
//some codes here that fills the "testing" array...
}
//I want to display here the new array values..
watch it on JSFiddle
- click on the button
- inspect element the output,
- on the console
I need the "testing" array on another function. how will I use it then?