I have this following variable:
Site = {
Alert: function(titulo, conteudo, data){
var id = Math.round(Math.random()*10000);
}
}
I would like to access it anywhere in my code, specifically here:
User = {
ConfirmSair: function(){
alert(id);
}
}
How can I do this?