I am trying to get the string "value" from the cookie name, however, "undefined" is always printed. I use chrome and any help would be appreciated
Here is my code:
Cookies.set('name', 'value');
var plswork = Cookies.get('name');
document.write(plswork);
source
share