Your JavaScript Isn’t JavaScript
If you’re a web developer, you’re probably familiar with JavaScript. It’s the scripting language used to create interactive and dynamic websites. However, what you may not be aware of is that not all JavaScript is created equal. There are different versions and dialects of JavaScript that can lead to confusion and frustration for developers.
JavaScript vs. ECMAScript
One of the sources of confusion is the difference between JavaScript and ECMAScript. JavaScript is a high-level, interpreted programming language that conforms to the ECMAScript specification. In simple terms, ECMAScript is the standard, and JavaScript is an implementation of that standard.
Since the release of ECMAScript 6 (ES6) in 2015, the language has seen significant updates and improvements. However, not all browsers fully support the latest version of ECMAScript, which can cause compatibility issues for developers.
Transpilers and Polyfills
To solve the problem of browser compatibility, developers have turned to transpilers and polyfills. Transpilers are tools that convert code written in one language to another. For example, you can write code in ES6 and use a transpiler to convert it to ES5, which is more widely supported by browsers. Polyfills are pieces of code that provide modern functionality in older browsers that don’t support it natively.
JavaScript Frameworks and Libraries
Another aspect of JavaScript that can cause confusion is the multitude of frameworks and libraries available. From React to Angular to Vue.js, there are numerous options for developers to choose from. Each has its own syntax, conventions, and best practices, which can make it difficult for developers to keep up with the latest trends and technologies.
Conclusion
While JavaScript is a powerful and versatile language, it’s important for developers to be aware of the nuances and complexities that come with it. Understanding the differences between JavaScript and ECMAScript, as well as how to deal with browser compatibility issues using transpilers and polyfills, can help developers navigate the ever-changing landscape of web development.
hi
I mean, this is everything you had to learn before async/await and classes were a thing.
its not that long ago, maybe 6 years?
You made a good videos but i think a person who has spent alot of time with js knows this concept all the best to you
0:21 you mean a rust femboy
I was waiting advanced techniques until the end of the video.. something is missing
i feel these should be common knowledge for a js dev.
still great video. those examples with the magic tricks are lit.
As a developer, i have no idea what you said but great content
You will rise soon just be consistent
❤❤
So you missed the other deep magic in JS – proxies. These are especially powerful if you are using classes – you can return a proxy from the constructor instead of returning the class instance itself.