You are developing an e-commerce website. Users place products into a shopping cart.
You need to ensure that the shopping cart data is available between browser sessions.
Which object should you use to store the shopping cart data?
A.
clientStorage
B.
localStorage
C.
applicationStorage
D.
sessionStorage
is that true ? i think the correct response is sessionStorage ?
The question says the information must be avaiable between browser sessions. sessionStorage is for one session, so it can’t be that. The answer is B.
Yes, this is true. Correct answer is B.