{"json_modified": "2016-10-18T04:39:29.619460", "uuid": "afb06edb-d0af-45cc-9330-47721835e2b3", "title": "Private Properties", "url": "/en-US/docs/Mozilla/Add-ons/SDK/Guides/Contributor_s_Guide/Private_Properties", "tags": [], "translations": [], "modified": "2016-10-18T04:39:29", "label": "Private Properties", "localization_tags": [], "locale": "en-US", "id": 86025, "last_edit": "2016-10-18T04:39:26", "summary": "A private property is a property that is only accessible to member functions of instances of the same class. Unlike other languages, JavaScript does not have native support for private properties. However, people have come up with several ways to emulate private properties using existing language features. This article discusses two common techniques: one using prefixes, the other closures.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Using_Prefixes", "title": "Using Prefixes"}, {"id": "Using_Closures", "title": "Using Closures"}, {"id": "Using_WeakMaps", "title": "Using WeakMaps"}, {"id": "From_WeakMap_to_Namespace", "title": "From WeakMap\u00a0to Namespace"}, {"id": "Namespaces_in_the_Add-on_SDK", "title": "Namespaces in the Add-on SDK"}], "slug": "Mozilla/Add-ons/SDK/Guides/Contributor_s_Guide/Private_Properties", "review_tags": ["technical", "editorial"]}