In-JavaScript-we-trust icon indicating copy to clipboard operation
In-JavaScript-we-trust copied to clipboard

#19 default enumerable is false instead of true

Open brjson opened this issue 6 months ago • 0 comments

In the answer of the question 19 you wrote: "By default enumerable is true when creating object.". However the default may be 'false'. Please check it again.

reference:

[https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperties#enumerable]

[enumerable] true if and only if this property shows up during enumeration of the properties on the corresponding object. Defaults to false.

brjson avatar Jan 06 '24 23:01 brjson