→ Example explained:-
• Create a localStorage name/value pair with name="lastname" and value="Smith" .
• Retrieve the value of "lastname" and insert it into the element with id="result".
• Create a localStorage name/value pair with name="lastname" and value="Smith" .
• Retrieve the value of "lastname" and insert it into the element with id="result".
📌 The sessionStorage Object
→ The sessionStorage object is equal to the localStorage object, except that it stores the data for only one session.
→ The data is deleted when the user closes the specific browser tab.
→ The sessionStorage object is equal to the localStorage object, except that it stores the data for only one session.
→ The data is deleted when the user closes the specific browser tab.
Thanks for reading this thread ❤️
If you like it , make sure you:
🔷 Like the tweet
🔷 Retweet the first tweet ⚡
For more content , follow:
@MrunayU
If you like it , make sure you:
🔷 Like the tweet
🔷 Retweet the first tweet ⚡
For more content , follow:
@MrunayU
You can read the unrolled version of this thread here: typefully.com
جاري تحميل الاقتراحات...