Created
August 16, 2017 10:32
-
-
Save sumonst21/2d3b310b6e41cd5018d067a490a01a0e to your computer and use it in GitHub Desktop.
A Function to Check a Cookie Last, we create the function that checks if a cookie is set. If the cookie is set it will display a greeting. If the cookie is not set, it will display a prompt box, asking for the name of the user, and stores the username cookie for 365 days, by calling the setCookie function:
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment