Build Shopping Cart With Javascript | E-commerce Shopping Cart Tutorial
If you are using Visual Studio Code, use live server extension to run the project in the brower. Or similar extension in your editor of choise. You can't open index.html directly from your file system because it may throw a CORS error.