1.

The object has three object attributes namely ________(a) Class, parameters, object’s extensible flag(b) Prototype, class, objects’ parameters(c) Prototype, class, object’s extensible flag(d) Native object, Classes and Interfaces and Object’s extensible flagThis question was posed to me in an online interview.This intriguing question originated from Object Attributes and Serialization topic in division Lexical Structures of JavaScript

Answer»

Correct answer is (C) PROTOTYPE, CLASS, object’s extensible flag

Explanation: Every object has three associated object attributes:

An object’s prototype is a reference to another object from which properties are inherited.

An object’s class is a string that categorizes the TYPE of an object.

An object’s extensible flag specifies WHETHER new properties may be added to the object.



Discussion

No Comment Found

Related InterviewSolutions