Isn't false the default for the property tag of the javascript object?

1.

let d1 = Object.getOwnPropertyDescriptor({name: "hello"}, "name");
console.info(d1);

Why is it printed

{ value: "hello",
  writable: true,
  enumerable: true,
  configurable: true }

and the properties defined by Object.defineProperties () are false

by default.
Apr.14,2021

this question is explained on MDN defineProperty . The excerpt is as follows:

  1. this method (referring to defineProperty) allows you to precisely add or modify the properties of an object. This method allows you to modify the default additional options (or configuration). By default, attribute values added with Object.defineProperty () are immutable. (that is, false by default)
  2. ordinary attributes added through assignment operations are enumerable (for example, objects created in JSON format in this topic are equivalent to var a = {}; a.nameplate assignment helloops; , which are actually assignment operations), can be rendered during attribute enumeration (for.in or Object.keys methods), and the values of these properties can be changed or deleted.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3a10e-2c1eb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3a10e-2c1eb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?