Philippe Hebert
Philippe Hebert

Reputation: 2028

Chrome Console Object Properties Shown with Angle and Square Brackets

When listing properties of an object in the Chrome console, I stumbled upon notations I had never seen before. Indeed, some properties were outlined with <angle-brackets-properties> and the [[double-square-brackets-properties]] notations. Could anyone shed some light on:

You will find an example below: enter image description here

Upvotes: 14

Views: 1451

Answers (1)

PEsteves
PEsteves

Reputation: 196

Most of what you're asking is answered here. Just like that answer I'll go ahead and quote the spec:

They are defined by this specification purely for expository purposes. An implementation of ECMAScript must behave as if it produced and operated upon internal properties in the manner described here. The names of internal properties are enclosed in double square brackets [[ ]]. When an algorithm uses an internal property of an object and the object does not implement the indicated internal property, a TypeError exception is thrown.

Upvotes: 6

Related Questions