MYNTRA CLONE Using HTML , CSS and JS With "Add to Cart" Functionality implemented using Local Storage
VERY IMP How to deal with LOCAL STORAGE When page loads assign variable with value pesent at local Storage if nothing is present in local Storage(then pass default value when page loaded for first time)
VERY IMP when we included script1.js inside bag.html
to "script1.js" could not find elements jo "index.html" pe present ho
so put a condition check
if(items_container == null) // do not execute further details return;