Skip to main content

Methodfunction attach as Object property to define behaviour

aka Methods

Abstract Method

Method only declared w/o implementation

References

  1. Prototypal InheritanceLink for all Object to their Prototype, to mimic Inheritance access to Method & props

  2. Static MethodMethod attach to Constructor Function (NOT Delegate via __proto__)

  3. public ↔ (default) Modifier for Methods, callable anywhere

  4. protectedModifier to restrict Method to class or child classes

  5. .closest()Method to return closest parent element for query string

  6. Instance MethodMethod to Delegate via __proto__

  7. @depecatedJSDoc tag to mark Method as deprecated

  8. CCReact class Instance extends React.Component, provides render() Method to return UI, manage state & perform side effects on Lifecycle Methods

  9. .json()async Chain Method to return Promise parse as JSON format

  10. AccessorSetter/ Getter Method to write/read Accessor Property in Object

  11. getJS Keyword modifier to create Getter by prefix Method definition

  12. .bind()Function Instance Method to fix this keyword for Method (with optional Argument), for new standalone fn

  13. privateJS Keyword & Property Modifier to restrict Method to within class only

  14. APIApp's Method & properties exposed to outside with rules for interacting

  15. createRoot()react-dom/client Method to create new Root container to inject App

  16. Static MethodMethod attach to class only & NOT Instance

  17. Accessor PropertyValue Modifier to set access via Getter & Setter Method

  18. Getterfunction to get a value, called as property literal; prepend Method with get JS Keyword

  19. Setterfunction to set a value, prepend class Method with set JS Keyword. Called as property literal reassignment

  20. Interface ObjectObject to interact with API by expose Method & Property Key

  21. render()CC Method inhert from React.Component to return UI as JSX

  22. .then()async Chain Method to execute Callback on Fullfill, auto-pass Promise Value as arg

  23. Function TypeType to annotate Methods & Callback Function with implicit return of any

  24. constructor() ↔ special class Method to pass args & setup new new Instance

  25. Abstract MethodMethod only declared w/o implementation