Assuming I use the following function in .js ... and inside it has some variables.
$(document).on("load", function(){
var Variavel1= "um";
var Variavel2= "dois";
var Variavel3= "tres";
var Variavel4= "quatro";
})
How do I use any of these variables outside of this function?
$(document).on("load", function(){
var Variavel1= "um";
var Variavel2= "dois";
var Variavel3= "tres";
var Variavel4= "quatro";
})
alert(Variavel3);