β 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
Loading suggestions...