PrepAway - Latest Free Exam Questions & Answers

Which object should you use to store the shopping cart data?

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?

PrepAway - Latest Free Exam Questions & Answers

A.
clientStorage

B.
localStorage

C.
applicationStorage

D.
sessionStorage

3 Comments on “Which object should you use to store the shopping cart data?

    1. Damien says:

      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.




      0



      0

Leave a Reply