InterviewSolution
Saved Bookmarks
| 1. |
The purpose of extensible attribute is to __________(a) make all of the own properties of that object non configurable(b) to configure and bring a writable property(c) “lock down” objects into a known state and prevent outside tampering(d) to include new properties into the objectI got this question during an interview.Asked question is from Object Attributes and Serialization topic in section Lexical Structures of JavaScript |
|
Answer» RIGHT choice is (c) “LOCK down” objects into a known state and prevent outside tampering Easiest explanation: Extensible attributes DETERMINES whether the object can have new properties or not. THEREFORE extensible attribute will allow an object to include and write properties into them. |
|