bavic retweeted
ES5 and ES6 explained in a nutshell 🧵
(Important Frontend Interview topic)
1. ES5 (ECMAScript 5):
ES5 is the fifth edition of the ECMAScript standard, which is the specification that defines the JavaScript language.
It was released in 2009 and marked a significant milestone in the evolution of JavaScript.
- ES5 introduced "strict mode," which enforces stricter rules on JavaScript code, catching common coding mistakes and preventing the use of certain problematic features. It helps improve code quality and security.
- ES5 added several new methods to built-in objects like Array, Object, and String, making it easier to manipulate and work with data.
- It introduced support for getter and setter methods, allowing developers to define custom behavior when reading and writing object properties.
- ES5 included a native JSON object for easy JSON parsing and stringifying.
- It introduced the bind method for functions, allowing developers to explicitly set the value of this in function calls.
- ES5 clarified variable scoping rules with the introduction of let and const for declaring variables within block scope.
- Compatibility:
ES5 is well-supported in all modern web browsers and is considered the baseline for JavaScript development.
Almost all existing JavaScript codebases are compatible with ES5.
bavic retweeted
Few of the outfits I have made, See more here instagram.com/itekish?igshid…
Please retweet🥰









