chrome.tabs.query({
active: true,
currentWindow: true
}, function(tabs) {
var tabURL = tabs[0].url;
console.log(tabURL);
});
Window.localStorage is used for storage
setItem
localStorage.setItem('myCat', 'Tom');
getItem
const cat = localStorage.getItem('myCat');
clear
localStorage.clear();
### 4) use of JSON.stringify() and JSON.parse()
JSON.stringify(convert obj to string )
JSON.parse( convert to string to obj)
we can use DOM and addevntlistner and then store in Window.localStorage