I'm unable to assign variable from async operation using callback . .done
didn't assign value to variable. Here my code :
var someGlobalVar = 0;
dbs.count('cfs_init').done(function(x) {
console.log('Total : ' + x);
someGlobalVar = x;
});
console.log(someGlobalVar); // 0