When is Jquery and when is native JavaScript allowed?

  • 0
    The question is already a familiar front with experience from three years, the essence of the question: as far as I know jquery is fading into the background and js native is again in trend and in requirements, so when does it make sense to use jquery, and when is native js?
    JavaScript Anonymous, Dec 15, 2019

  • 8 Answers
  • 0
    Everything can be done natively and even better, because, firstly, it is better to pump the skills of the native than JQuery, and secondly, native ES6 has sugar OOP and much more.
    Anonymous

  • 0
    Tree-like visual menu with different icons or carousel of images, etc. is an ordinary routine . And it's better to have your own ready-made functionality in "pure" JS.

    But less than 1% have it, because for a long time everything was implemented in jQuery and no one will rewrite it. Instead, it's easier to get the READY you want! visual block or from jQuery libraries, or, which is many times better, from the same github on native (if you can find it).



    Everything else (unique functionality and internal logic) is done natively.



    PS: I hope I clearly explained the selection criterion ...
    Anonymous

  • 0
    The tool is chosen based on the task. There is no concept of fashionable or not fashionable here. If your project requires 100% native JS, you won't even have a question like that. If you need to quickly make several ready-made widgets with minimal style customization - why is jQuery bad globally? In fact, there is no explanation, everything is only from the realm of science fiction like about Flash and Apple.
    Anonymous

  • 0
    jQuery has been dead for several years, and no one needs native JS, because why should it be faster and easier without it?
    Anonymous

  • 0
    For presentation sites, business cards, animations - Jquery is fine. Where everything is more complicated - frameworks and libraries are already modern.

    Choose the toolkit for the task
    Anonymous

  • 0
    They answered you - everything is under the task.

    I recently made a small website builder - I went to the view very much.

    And a couple of days ago I made a landos - there is 1 slider, and a mobile menu - here I have enough of native js. And about jQuery - even xs, I haven't used it for 2-3 years
    Anonymous

  • 0
    Jquery is now commonly used as a dependency. Found for example an irreplaceable plugin for Jquery. Do not write it yourself. 100kb. chtol sorry?
    Sean Shepard

  • 0
    When there are already legacy jquery. It doesn't make much sense to drag him into new projects.
    Marilyn Delgado

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!