Principles of Object-Oriented Programming in JavaScript by Nicholas C. Zakas

Principles of Object-Oriented Programming in JavaScript by Nicholas C. Zakas

Author:Nicholas C. Zakas [Nicholas C. Zakas]
Language: eng
Format: epub, pdf
Publisher: leanpub.com
Published: 2012-12-17T16:00:00+00:00


In this code, the name property is an accessor property with only a getter. There is no setter or any other attributes to explicitly set to true, so the value can be read but not changed.

As with accessor properties defined via object literal notation, an accessor property without a setter throws an error in strict mode when you try to change the value. In nonstrict mode, the operation silently fails. Attempting to read an accessor property that has only a setter defined always returns undefined.*



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.