Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Write a Basic Fetch Request

Nour El-din El-helw
Nour El-din El-helw
8,241 Points

Cookies

I don't get what are cookies, or how you send and receive them to/from a web server so can someone please explain this to me?

1 Answer

Justin Horner
STAFF
Justin Horner
Treehouse Guest Teacher

Hello Nour El-din El-helw,

I found a great resource for learning about cookies. I'll share a relevant excerpt from the post below and you can continue your reading here if you'd like to learn more.

Cookies are small pieces of information websites store on your computer. Cookies only contain bits of text, not anything else. The text can be a user ID, session ID, or any other text. For example, web pages can be configurable – a web page could have a Hide link that hides a certain element on the page. The page can save this setting on your computer with a cookie. When you load the page in the future, the page can examine the cookie and automatically hide the element.

I hope this helps. Happy coding 🙂