JavaScript cookie demo
The JavaScript js/main.js included on this page sets a cookie:
document.cookie = 'cat=tabby';
Once set, the cookie is included with requests for this page.
View the cookie in Chrome DevTools from the Application panel Cookie pane:

The Headers tab in the Network panel shows that the cookie is included in requests:
