GIAC Penetration Tester (GPEN) — Question 74

Which of the following is the JavaScript variable used to store a cookie?

Answer options

Correct answer: C

Explanation

The correct answer is C, Document cookie, as this is the standard way to access and manipulate cookies in JavaScript. Options A and B are not valid JavaScript variables for cookies, and option D refers to session storage, which is different from cookies.