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-15/data/cart.js:15–17 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
13
}
14
15
function
saveToStorage() {
16
localStorage.setItem(
'cart'
, JSON.stringify(cart));
17
}
18
19
export
function
addToCart(productId) {
20
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