Week 5 Javascript


Back to our Course Page | Timers and Window Object

Here we're showing various ways to write Javascript objects, properties and methods. Also we show some JS accessor methods. Check the page source for the code.

Use Accessor properties for controlling access to setting object properties. This is using a book object, manipulating default year and edition properties. Taken from Javascript for Professional Developers by Nicholas Zakas, p. 177.