Best of MediumSeptember 2021

  1. 1
    Article
    Avatar of medium_jsMedium·5y

    Prototype Inheritance in Javascript

    Prototypal inheritance is a method by which an object can inherit the properties and methods of another object. Prototype inheritance is useful anywhere you want to use the Object-Oriented approach with inheritance to model your problems. Backbone.js provides base classes such as Model, Collection, and View.

  2. 2
    Article
    Avatar of medium_jsMedium·5y

    Worst JavaScript practices that degrade code quality

    People hate JS because they don’t understand it completely and how it works under the hood. Some people think that they know it but end up following some practices which in turn degrades the code quality of the project. Lacking knowledge of DRY principle in Coding is a standard Coding practice that you should follow in any language while programming. Not handling errors in API calls is not a general practice.

  3. 3
    Article
    Avatar of medium_jsMedium·5y

    React Hooks: Complete Interview Guide.

    Hooks were introduced in React v16.8, they let us use state, lifecycle methods and other React features without ever writing a class component. Hooks can only be called at top level. Don’t call Hooks inside loops, conditions or nested functions. Call Hooks from React Component or Custom Hooks.

  4. 4
    Article
    Avatar of medium_jsMedium·5y

    How to Write Better JavaScript Code with “forEach” and “reduce”

    How to Write Better JavaScript Code with “forEach” and “reduce” Leverage the language to write better code. Ankit Aabad: The idea is to write small reusable functions and leverage language constructs like forEach and reduce to solve problems.