I have these codes below
$('#first').click(function() {
var TEST = 5;
console.log(test)
})
$('#second').click(function() {
console.log(test)
})
it looks like this is a weird question but is there any a way to pass a value of TEST
from above to below then use it.
Note: I don't want to use a global variable in this case.
Thank in advance