About 54 results
Open links in new tab
  1. How to document ECMA6 classes with JSDoc? - Stack Overflow

    Jan 18, 2017 · My problem is that I don't know how to document ECMA6 classes with JSDoc and I can't find any decent information. What I tried. I tried reading the official example but I find it …

  2. javascript: what's the difference between a function and a class

    Aug 15, 2012 · In javascript, there are no classes. javascript uses prototype inheritance rather than class based inheritance. Many people will refer to classes in javascript because it is …

  3. Javascript classes vs objects, pros and cons? - Stack Overflow

    Oct 4, 2013 · If I were you I would give a greater emphasis to code style issues: for example, with the object literal method you can use closures to simulate private variables while if the …

  4. javascript - Node.js ES6 classes with require - Stack Overflow

    Yes, your example would work fine. As for exposing your classes, you can export a class just like anything else: class Animal {...} module.exports = Animal; Or the shorter: module.exports = …

  5. oop - Does JavaScript have the interface type (such as Java's ...

    Sep 14, 2010 · Take as example an array of classes that have the same methods: Circle() Square() Triangle() If you want to know how polymorphism works the Book MFC of David …

  6. javascript - ES6 Class Multiple inheritance - Stack Overflow

    Apr 26, 2015 · For stateful classes I'd personally recommend having the Example contain the state and use the Class1 and Class2 as tools for Example to do its job as a class that …

  7. oop - JavaScript private methods - Stack Overflow

    Sep 11, 2008 · (new!) Native private methods in future JavaScript versions. TC39 private methods and getter/setters for JavaScript classes proposal is stage 3. That means any time soon, …

  8. How do I create an abstract base class in JavaScript?

    Feb 28, 2009 · JavaScript Classes and Inheritance (ES6) According to ES6, you can use JavaScript classes and inheritance to accomplish what you need. JavaScript classes, …

  9. javascript - ES6 Classes for Data Models - Stack Overflow

    Jan 31, 2016 · I'm trying to use ES6 Classes to construct data models (from a MySQL database) in an API that I'm building. I prefer not using an ORM/ODM library, as this will be a very basic, …

  10. oop - What is polymorphism in JavaScript? - Stack Overflow

    Dec 25, 2014 · Perhaps in JavaScript, it is a bit more difficult to see the effects of polymorphism because the more classical types of polymorphism are more evident in static type systems, …

Refresh