Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SuperSimpleDev/javascript-course
/ saveToStorage
Function
saveToStorage
2-copy-of-code/lesson-16/data/cart.js:21–23 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
19
}
20
21
function
saveToStorage() {
22
localStorage.setItem(
'cart'
, JSON.stringify(cart));
23
}
24
25
export
function
addToCart(productId) {
26
let
matchingItem;
Callers
3
addToCart
Function · 0.70
removeFromCart
Function · 0.70
updateDeliveryOption
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected