A common strategy among JavaScript developers whose web apps…
A common strategy among JavaScript developers whose web apps employ cookies is to write a function that assembles the text string for a cookie from a list of values that is passed in, then stores that text string as a document cookie.