ES6 vs jQuery

Need advice about which tool to choose?Ask the StackShare community!

ES6

70.3K
58.8K
+ 1
165
jQuery

192K
66.4K
+ 1
6.6K
Add tool

ES6 vs jQuery: What are the differences?

Introduction

JavaScript is a widely-used programming language that is utilized for creating dynamic websites and web applications. ES6 (ECMAScript 6) and jQuery are two popular tools used by web developers to enhance their JavaScript code. While ES6 includes a variety of new features and syntax enhancements, jQuery is a fast and concise JavaScript library that simplifies HTML document traversal and manipulation, as well as event handling and animation.

Key Differences between ES6 and jQuery

  1. Syntax: ES6 introduces several new syntax enhancements, such as arrow functions, template literals, let and const for variable declaration, and the spread operator. On the other hand, jQuery uses a concise syntax that enables developers to perform common tasks with fewer lines of code.

  2. DOM Manipulation: While both ES6 and jQuery allow for DOM manipulation, jQuery provides a simpler and more intuitive way to traverse and manipulate the HTML document. jQuery offers methods like .addClass(), .removeClass(), and .html() that streamline the process, whereas ES6 requires developers to manually interact with the DOM methods.

  3. AJAX Requests: ES6 introduces the Fetch API, which provides a native way to make AJAX requests and retrieve data from servers. This enables developers to fetch data without relying on external libraries like jQuery. jQuery, on the other hand, has dedicated methods like $.ajax() and $.get() that simplify AJAX requests and make handling responses easier.

  4. Animation: Although ES6 does not have built-in animation functionalities, jQuery offers smooth and easy-to-use animation methods like .fadeIn(), .fadeOut(), and .slideUp(). These methods allow developers to effortlessly add animation effects to elements on the webpage.

  5. Modularity: ES6 provides native support for modules through the import and export keywords, allowing developers to split their code into reusable and maintainable modules. jQuery, on the other hand, does not provide built-in modularity and follows a more traditional approach to structuring code.

  6. Browser Compatibility: ES6 introduced numerous new features and syntax enhancements, which might not be supported by older browsers. To ensure compatibility, developers need to transpile their ES6 code to ES5 using tools like Babel. jQuery, however, has excellent cross-browser compatibility and can be used in various browsers without any additional dependencies.

In summary, ES6 brings new syntax enhancements and comprehensive language features to JavaScript, making it more powerful and versatile. jQuery, on the other hand, provides a simplified and concise way to perform common web development tasks, especially in DOM manipulation, AJAX requests, and animation.

Decisions about ES6 and jQuery
Malek Boubakri
Web developer at Quicktext · | 0 upvote · 201.8K views

The project is a web gadget previously made using vanilla script and JQuery, It is a part of the "Quicktext" platform and offers an in-app live & customizable messaging widget. We made that remake with React eco-system and Typescript and we're so far happy with results. We gained tons of TS features, React scaling & re-usabilities capabilities and much more!

What do you think?

See more
kazi shahin
CTO at Blubird Interactive Ltd. · | 3 upvotes · 99.1K views

I've an eCommerce platform building using Laravel, MySQL and jQuery. It's working good and if anyone become interested, I just deploy the entire source cod e in environment / Hosting. This is not a good model of course. Because everyone ask for small or large amount of change and I had to do this. Imagine when there will be 100 separate deploy and I had to manage 100 separate source. So How do I make my system architecture so that I'll have a core / base source code. To make any any change / update on specific deployment, it will be theme / plugin / extension based . Also if I introduce an API layer then I could handle the Web, Mobile App and POS as well ? Is the API should be part of source code or a individual single API and all the deployment will use that API ?

See more
Amir Mousavi

This post is a bit of an obvious one, as we have a web application, we obviously need to have HTML and CSS in our stack. Though specifically though, we can talk a bit about backward compatibility and the specific approaches we want to enforce in our codebase.

HTML : Not much explanation here, you have to interact with HTML for a web app. We will stick to the latest standard: HTML 5.

CSS: Again if we want to style any of our components within he web, we have to use to style it. Though we will be taking advantage of JSS in our code base and try to minimize the # of CSS stylesheets and include all our styling within the components themselves. This leaves the codebase much cleaner and makes it easier to find styles!

Babel: We understand that not every browser is able to support the cool new features of the latest node/JS features (such as redue, filter, etc) seen in ES6. We will make sure to have the correct Babel configuration o make our application backward compatible.

Material UI (MUI): We need to make our user interface as intuitive and pretty as possible within his MVP, and the UI framework used by Google will provide us with exactly that. MUI provides pretty much all the UI components you would need and allows heavy customization as well. Its vast # of demos will allow us to add components quickly and not get too hung up on making UI components.

We will be using the latest version of create-react-app which bundles most of the above along many necessary frameworks (e.g. Jest for testing) to get started quickly.

See more

For our front-end, React is chosen because it is easy to develop with due to its reusable components and state functions, in addition to a lot of community support. Because React is popular, it would be easy to hire for it here at our company MusiCore. Our team also has experience with React already. React can be written with ES6 and ES6 has a lot of popularity and versatility when it comes to creating classes and efficient functions. Node.js will be used as a runtime environment to compile the code. Node.js also has many different types of open-source packages that can help automate some of the tasks we want to do for the application. CSS 3 will be used to style components and is the standard for that.

See more
Manatsawin Hanmongkolchai
Chose
jQueryjQuery
over
ReactReact
in

When I started TipMe, I thought about using React frontend. At the end, plain, simple jQuery won.

I had to build this iteration of the site fast and by using jQuery I could keep using Django as a full stack development tool. One important point is Django form (combined with Django Bootstrap3) means that I don't have to reinvent form rendering again, which will be the case with React.

Over time, more interactivity seeped into the site and React components start making its way into the codebase.

I now wish the site is built using React so that I could add more user friendly interfaces easier (no more fuddling with server states) but I would still say jQuery helped me get past those early days.

See more
Aleksandr Filatov
Contract Software Engineer - Microsoft · | 3 upvotes · 200.8K views
How to make your JS code faster just adding some parenthesis?

Optimize-js I will not describe this tool a lot here, because it's already good done by author on github

I just want to mention that this tool wrap up all immediately-invoked functions or likely-to-be-invoked functions in parentheses what is do a great optimization a JavaScript file for faster initial execution and parsing (based on my experience).

The performance of application where I've introduced optimize-js improved on 20% in a common (tested in Chrome and IE11).

Why it happens?

Is it maintaining now? - Unfortunately, no (but feel free to send PR)

See more
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of ES6
Pros of jQuery
  • 109
    ES6 code is shorter than traditional JS
  • 52
    Module System Standardized
  • 2
    Extremly compact
  • 2
    Destructuring Assignment
  • 1.3K
    Cross-browser
  • 957
    Dom manipulation
  • 809
    Power
  • 660
    Open source
  • 610
    Plugins
  • 459
    Easy
  • 395
    Popular
  • 350
    Feature-rich
  • 281
    Html5
  • 227
    Light weight
  • 93
    Simple
  • 84
    Great community
  • 79
    CSS3 Compliant
  • 69
    Mobile friendly
  • 67
    Fast
  • 43
    Intuitive
  • 42
    Swiss Army knife for webdev
  • 35
    Huge Community
  • 11
    Easy to learn
  • 4
    Clean code
  • 3
    Because of Ajax request :)
  • 2
    Powerful
  • 2
    Nice
  • 2
    Just awesome
  • 2
    Used everywhere
  • 1
    Improves productivity
  • 1
    Javascript
  • 1
    Easy Setup
  • 1
    Open Source, Simple, Easy Setup
  • 1
    It Just Works
  • 1
    Industry acceptance
  • 1
    Allows great manipulation of HTML and CSS
  • 1
    Widely Used
  • 1
    I love jQuery

Sign up to add or upvote prosMake informed product decisions

Cons of ES6
Cons of jQuery
  • 1
    Suffers from baggage
  • 6
    Large size
  • 5
    Sometimes inconsistent API
  • 5
    Encourages DOM as primary data source
  • 2
    Live events is overly complex feature

Sign up to add or upvote consMake informed product decisions

- No public GitHub repository available -

What is ES6?

Goals for ECMAScript 2015 include providing better support for large applications, library creation, and for use of ECMAScript as a compilation target for other languages. Some of its major enhancements include modules, class declarations, lexical block scoping, iterators and generators, promises for asynchronous programming, destructuring patterns, and proper tail calls.

What is jQuery?

jQuery is a cross-platform JavaScript library designed to simplify the client-side scripting of HTML.

Need advice about which tool to choose?Ask the StackShare community!

What companies use ES6?
What companies use jQuery?
See which teams inside your own company are using ES6 or jQuery.
Sign up for StackShare EnterpriseLearn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with ES6?
What tools integrate with jQuery?

Sign up to get full access to all the tool integrationsMake informed product decisions

Blog Posts

What are some alternatives to ES6 and jQuery?
JavaScript
JavaScript is most known as the scripting language for Web pages, but used in many non-browser environments as well such as node.js or Apache CouchDB. It is a prototype-based, multi-paradigm scripting language that is dynamic,and supports object-oriented, imperative, and functional programming styles.
CoffeeScript
It adds syntactic sugar inspired by Ruby, Python and Haskell in an effort to enhance JavaScript's brevity and readability. Specific additional features include list comprehension and de-structuring assignment.
TypeScript
TypeScript is a language for application-scale JavaScript development. It's a typed superset of JavaScript that compiles to plain JavaScript.
Python
Python is a general purpose programming language created by Guido Van Rossum. Python is most praised for its elegant syntax and readable code, if you are just beginning your programming career python suits you best.
HTML5
HTML5 is a core technology markup language of the Internet used for structuring and presenting content for the World Wide Web. As of October 2014 this is the final and complete fifth revision of the HTML standard of the World Wide Web Consortium (W3C). The previous version, HTML 4, was standardised in 1997.
See all alternatives