Vidyalelo
JavaScript · Q135

Document Object Model And Event Handling

Programming · JavaScript · question 135

Q135

Which of the following defines the Cookie visibility?

A.
document Path
B.
localStorage
C.
sessionStorage
D.
all of the mentioned
Answer

Answer: Option D

Solution

Answer: Option D
Solution:
Cookie visibility is scoped by document origin as localStorage and sessionStorage are, and also by document path.