I got this weird output from chrome.storage
When I tried this code here
local = data;
As it says in chrome storage docs, chrome.storage is asynchronous, so the callback function from
chrome.storage.local.get executes later and that is why you get that output.