Problem with variable inside ready Jquery
Well i have this problem i want
Number to be readed outside the function, its a function for a dice that everytime you click on in you will get a random number. The problem is that i can only see the variable inside function asd2, if i alert or anything on function asd it doesnt let me....
$(document).ready(asd);
function asd() {
$("#lala").click(function asd2() {
var
Number= Math.floor(Math.random() * (6 - 1 + 1)) + 1;
})
alert (
Number);
}