4.12 SUMMARY OF WAYS TO USE A FUNCTION

Apart from a normal interpretation of function (as in other languages like C or pascal), functions are also used for the following:

  • Methods
  • Constructors
  • Classes
  • Module containers

4.12.1 Client-side Cookies

It may be pertinent to point out that writing on the client is forbidden, due to security issues. However, it is possible that small bits of information may be stored in a controlled manner, on the client side. This is possible in the form of a Cookie.

Cookies are not complete without their role in the server side. They are discussed in more detail on the server side in this book.

A Cookie is a piece of information stored in the client's machine. It is used in several contexts but the main reason is ...

Get Web Technology: Theory and Practice now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.