I got this weird output from chrome.storage
When I tried this code here
var local;
chrome.storage.local.get(function(data) {
local = data;
console.log(local);
});
console.log('>');
console.log(local);
console.log('<');
Here's the output (dataString is the value of data)
>
undefined
<
dataString
To which the dataString should be printed before the > undefined < right? or maybe I am just confused