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?

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



Leave a Reply 3

Your email address will not be published. Required fields are marked *


christophe

christophe

is that true ? i think the correct response is sessionStorage ?

Damien

Damien

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.

Alida

Alida

Yes, this is true. Correct answer is B.