Loading topic
key: value pairs separated by commas. This chapter covers the literal syntax, what each literal p2 min readif statements), know the primitive types, and can run code in a browser console or Node.js. It also assumes you can create an object literal, which the previous chapter covered.2 min readlet and const. Here you will change objects after they exist: add new properties, overwrite existing ones, and remove them.2 min readundefined, how to separate own properties from inherited ones, and how to read nested valu2 min readthis gets its value, and how to keep that value when you pass a method around.2 min readObject.hasOwn. You should also be comfortable with for...of loops over arrays.2 min readObject.keys or Object.entries. It explains why changing one object can unexpectedly change another, and how to make copies that stay independent.2 min readin and Object.hasOwn. It also assumes you know how this works in methods and how for...in and Object.keys list properties. Earlier chapters showed that in can see properties the object does not own. Thi2 min readObject.keys and for...in. It also assumes you know that properties can be inherited through the prototype chain.2 min readthis works inside methods, and how to inspect a property with Object.getOwnPropertyDescriptor. All of these were covered in earlier chapters.2 min readwritable, enumerable, configurable), the difference between a reference and a copy, and how strict mode changes error behavior. JavaScript has three built-in ways to restrict changes to an object. Each one is stricter than the one bef2 min read