Open
Description
import {cart} from '../script/cart.js';
import { vendor } from '../script/product.js';
cart.forEach((cartItem) =>{
const productId = cartItem.productId;
let matchingItems;
vendor.forEach((product) =>{
if(product.id === productId){
matchingItems = product;
}
});
console.log(matchingItems);
code doesnt appear on the console and no error is recorded.
Metadata
Metadata
Assignees
Labels
No labels