To view the cookie, log document.cookie to the console.

Great! That's all there is to create a cookie.

Make sure to assemble console.log(document.cookie);