JavaScript Builtin Types

!JavaScript has the following built-in types available at the global scope.


Objects

Objects are a basic collection of disparate data. They are passed by reference.

const obj = {
  foo: 1,
  bar: {
    baz = 2,
  },
};

const shallow_copy = { ...obj };

const deep_copy = structuredClone(obj);


CategoryRicottone

JavaScript/Builtins/Types (last edited 2023-05-30 18:22:59 by DominicRicottone)