function init() {
  populatePage('products');
  const router = new Router('/', home);
  router.addRoute('/cart', cart);
  router.addRoute('/user', user);
  addItemsToCart();
}
/**
 * Initializes the page once the DOM has fully loaded
 */
Initializes the page once the DOM has fully loaded
Initializes the page once the DOM has fully loaded
function init() {
  populatePage('products');
  const router = new Router('/', home);
  router.addRoute('/cart', cart);
  router.addRoute('/user', user);
  addItemsToCart();
}
function init ( ) { populatePage ( 'products' ) ; const router = new Router ( '/' , home ) ; router . addRoute ( '/cart' , cart ) ; router . addRoute ( '/user' , user ) ; addItemsToCart ( ) ; }
Initializes the page once the DOM has fully loaded
Initializes the page once the DOM has fully loaded