How to access function's parameter in another function that invoke it, here's what I mean
function one(a){
b();
}
function b(){
//'a' is the parameter of function one
if(a>0){
//do some stuff
}
}
//the parameter 'a' of function one goes here to catch an event
element.addEventListener('wheel', one);
Can I access function one parameter in function b?
function one(a) { b() } function b() { console.log(arguments.callee.caller.arguments[0]) }