Cookies in JavaScript

Cookies in JavaScript in javaScript does not Run in browser please help me .
Please check my cods links and reply.



Please check my screenshot and give me answar.
Thank you
Nitish Kumar