Javascript Objects

How to Create Class Properties and Methods

This is best explained via an example.

<script>
This is no longer current - View the source code of this page and inspect the console.

</script>

When running the above script, it returns:

No longer current - View the source code of this page and inspect the console.

True Privacy in Javascript

http://philipwalton.com/articles/implementing-private-and-protected-members-in-javascript/