5 Describe the difference between a cookie , sessionStorage and localStorage

local Storage – stores data with no expiration date ,the data will not be deleted even after the browser is closed.

SessionStorage – Stores data with expiration, that is data will be deleted when the browser is closed.

Cookie – a simple computer file made of text. The information stored in cookies can be used to personalise the experience when using a website. A website can use cookies to find out if someone has visited a website before and record information (data) about what they did.