I want to get the result
returned where I call the function. How can I do this?
I get the result through the console.log(result)
but not the console.log(finger)
.
I want to pass it outside.
function fingercode() {
var fp = new Fingerprint2();
fp.get(function(result) {
console.log(result);
});
}
var finger = fingercode();
console.log(finger);