The 2019 State of JavaScript report reveals the language’s top frameworks, user demographics, and more juicy data. Love it or hate it, JavaScript isn’t going anywhere. It is essential to modern development and has been the top programming language on GitHub since 2014.
As the year draws to a close, check up on the pulse of JS and see what’s hot in 2019 (and what will likely heat up through 2020).
All about arrow functions
JS doesn’t ever stand still; new features are always added, the ecosystem is always changing, and grammar evolves with new syntax. Most notably are JavaScript arrow functions (sometimes called ‘fat arrow’ functions), which were were introduced in ES6.
97.8% of devs use arrow functions. This marks the highest usage rate of any JS feature.
With this welcomed feature, devs can write functions with a shorter, more compact function syntax. All it takes is one arrow: =>
.
SEE ALSO: Software development trends for 2020
React versus Angular
When it comes to front end frameworks and libraries, Angular and React are two of the biggest names. Last year we saw a dip in satisfaction with Angular. This year, it continues its downward trend.
35.8% of devs have used Angular before but would not use it again. Comparatively, 21.9% used Angular and would use it again. (We will see what happens to these numbers in 2020, when Angular v9 final releases.)
React, on the other hand, measures more favorably. 71.7% of devs have used React and would use it again. This is a slight increase in satisfaction compared to previous years.
2019 shaped up to be a banner year for React. Earlier this year, npm conducted a survey which revealed that 63% of JS devs write React code.
Tools of the trade
What should JS devs add to their toolkit? Respondents were asked about miscellaneous tools they use to code and what invaluable resources they use.
- Lodash and Moment.js: These two JS utility libraries are the two most commonly used by devs. Lodash provides help when working with arrays, numbers, objects, and strings; while Moment.js provides a library for displaying and manipulating dates.
- VS Code: By a wide margin, VS Code clocked in as the most commonly used text editor. Visual Studio Code works with a long host of languages, including JavaScript and TypeScript.
- Brave: While Chrome is the most used browser for development, an honorary mention this year goes to Brave. 836 devs wrote in that they primarily work in the Brave browser.
- Webpack: Bundle your scripts, assets, and images with Webpack, the most used JS build tool.
- Stack Overflow: It comes as no surprise, but Stack Overflow is where JS devs go when they need help with a tricky problem. Mozilla’s Developer Network/MDN receives an honorable mention as the number two most consulted resource.
Source : JAXenter