I have this piece of code
function main(b)
{
b.on('func1', onFunc1);
b.on('func2', onFunc2);
}
function onFunc1(a)
{
console.log(a); //prints (for example) 2
console.log(b); //is this possible?
}
So my question is, is there any way that I can pass to function 'onFunc1' variable named 'b'?