I am trying to do a simple IF statement to check if a specific Cookie exists: I'm not looking to over complicate anything just something simple like
if (document.cookie.name("a") == -1 {
console.log("false");
else {
console.log("true");
}
What is this syntax for this?