Today I Learned - Rocky Kev

Tagged “classes”

  1. TIL about switching out of JS Classes and into JS Modules

    A classes are just blueprints for creating objects. A class encapsulates data and functions that manipulate data. A module is a file that exports features, such as variables, objects, and functions, that can be used elsewhere.

  2. TIL all functions create a empty prototype object

    When you create a function in JavaScript, it automatically creates an empty container called prototype for you to stick your methods into.

  3. TIL super keyword in Javascript classes

    the super keyword is mainly used when we want to access a variable, method, or constructor in the base class from the derived class.

See all tags.