- Use of Strict: Undeclared variables were permitted but it did not support good programming. Hence the “use strict” when used would throw a reference error.
- Accessors: The concept of an accessor was introduced as well. Their main purpose was to either get a certain value or set the value. This was known as getter and setter.
- Destructing: One of the best ways to reduce code cluttering or increase code readability is to make it palatable. Unpacking or destructing the code or object makes it portable and highly easy to reuse.