MCPcopy Create free account
hub / github.com/SuperSimpleDev/javascript-course / saveToStorage

Function saveToStorage

2-copy-of-code/lesson-18/data/cart-oop.js:21–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19 },
20
21 saveToStorage() {
22 localStorage.setItem(localStorageKey, JSON.stringify(this.cartItems));
23 },
24
25 addToCart(productId) {
26 let matchingItem;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected