Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. What is the main difference between localStorage and sessionStorage?

  2. A.

     Lifetime

    B.

     Scope

    C.

     Both Lifetime and Scope

    D.

     None of the mentioned

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    The difference between localStorage and sessionStorage has to do with lifetime and scope: how long the data is saved for and who the data is accessible to.


Be The First To Comment