This question may seem duplicate but unfortunately I couldn't understand other answers.
I'm trying to assign value from callback function to parent variable.
For example
let orientation = null;
orientation = Exif.getData(image, function(){
return "somevalue";
});
Here how can I assign "somevalue" to orientation?