Skip to content

lesson 14 I'm not seeing my checkout items on the console #152

Open
@Georgeikani

Description

@Georgeikani

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions