|
Size: 490
Comment: Pruning dead links
|
Size: 352
Comment: Cleanup
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 1: | Line 1: |
| ## page was renamed from JavaScript/Builtins/Types = JavaScript Builtin Types = |
= ECMAScript Objects = |
| Line 4: | Line 3: |
| !JavaScript has the following '''built-in types''' available at the global scope. | '''Objects''' are a core data type. |
| Line 12: | Line 11: |
| == Objects == | == Description == |
| Line 14: | Line 13: |
| '''Objects''' are a basic collection of disparate data. They are passed by reference. | A basic collection of data passed by reference. |
ECMAScript Objects
Objects are a core data type.
Contents
Description
A basic collection of data passed by reference.
const obj = {
foo: 1,
bar: {
baz = 2,
},
};
const shallow_copy = { ...obj };
const deep_copy = structuredClone(obj);