I want to get callback function value as variable. I already try it but not working.
var Session = '';
chrome.storage.sync.get('Session', function(data){
Session = data.Session;
});
alert(Session);
I must want to get this session as variable not any other function to execute it.