I have two different functions which gets parameters:
push.on('registration', function(data) {
var id = data.registrationId;
});
push.on('notification', function (data) {
var count = data.count;
});
Now I want to use the variables id and count in another new function:
function three(id, count){
var _id = id;
var _count = count;
}
How is that possible?
Now I want to use the variables id and count in another new function:in one of these events or will there be a third event?