$state • Svelte documentation| svelte.dev
The Object.defineProperty() static method defines a new property directly on an object, or modifies an existing property on an object, and returns the object.| MDN Web Docs
The static keyword defines a static method or field for a class, or a static initialization block (see the link for more information about this usage). Static properties cannot be directly accessed on instances of the class. Instead, they're accessed on the class itself.| MDN Web Docs
Classes are a template for creating objects. They encapsulate data with code to work on that data. Classes in JS are built on prototypes but also have some syntax and semantics that are unique to classes.| MDN Web Docs
JavaScript is designed on a simple object-based paradigm. An object is a collection of properties, and a property is an association between a name (or key) and a value. A property's value can be a function, in which case the property is known as a method.| MDN Web Docs
The get syntax binds an object property to a function that will be called when that property is looked up. It can also be used in classes.| MDN Web Docs