0

Whats The Bug in This Code?

I set The Cookie And print the Cookie. https://code.sololearn.com/WgUM9383Sh8V/?ref=app

27th Jun 2018, 9:46 PM
Rami Ghazzawi
Rami Ghazzawi - avatar
4 ответов
+ 2
I hate to be that guy but is nothing wrong with the code. You used console.log so you got the cookies associated with the document printed at the bottom where errors normally are printed. Try document.write() instead. https://www.w3schools.com/js/js_cookies.asp https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_doc_cookie
27th Jun 2018, 11:31 PM
ODLNT
ODLNT - avatar
+ 1
https://www.youtube.com/watch?v=AwicscsvGLg
29th Jun 2018, 2:07 AM
ODLNT
ODLNT - avatar
0
if I want to run the cookie on google chrome, what Should I do?
27th Jun 2018, 10:02 PM
Rami Ghazzawi
Rami Ghazzawi - avatar
0
ok, I will use php Cookies Thanks❤
27th Jun 2018, 10:09 PM
Rami Ghazzawi
Rami Ghazzawi - avatar