Which of the following is the correct way to test for the presence of a cookie?

Which of the following is the correct way to test for the presence of a cookie?

Which of the following is the correct way to test for the presence of a cookie?

A.
test(document.cookie);

B.
alert(document.cookie);

C.
document.cookie

D.
prompt(document.cookie);



Leave a Reply 0

Your email address will not be published. Required fields are marked *