Skills101
← All practice quizzes

Quiz: Browser Storage and Cookies

5 questions · new set on every retakeNo time limitPass: 60%+10 XP on first pass

Where a web app can keep data in the browser. localStorage vs sessionStorage vs cookies vs IndexedDB, how cookies travel with every request, cookie attributes like HttpOnly, Secure and SameSite, and what is safe to store where.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    Which storage is cleared when the browser tab is closed?

  2. Question 2

    Which storage is sent to the server automatically with every request?

  3. Question 3

    What does this print?

    const saved = String(false);
    console.log(saved ? "truthy" : "falsy");
    
  4. Question 4

    What does this print?

    console.log(String({ name: "Asha" }));
    
  5. Question 5

    What does the HttpOnly cookie attribute do?

🎯 Today’s placement challenge — 10 questions, no login. Can you score 10/10?Take today’s challenge →