I get the following error in jsLint:
'document' was used before it was defined.
Line that causes the error:
document.cookie = name + "=" + value + expires + "; path=/";
I get why this happens, but I would like my code to be compliant.
How do I resolve this?
Thanks.