JavaScript has come a long way from 1995 and Netscape to become the most popular programming language in the world and has massively evolved during this time.
Most of the updates were done without breaking the old code, but the downside is that the imperfections of the creators were stuck in the code.
Until ES5 was released and “use strict” feature with it.
Strict mode is a feature that allows you to place a program or a function into a strict operating context.
So in this mode certain actions are being prevented and you are getting more warnings and exceptions and you are provided with more information.
To enable strict mode place the string “use strict” at the beginning of your file.
And finally funky stuff like creating two arguments with the same name are not an option anymore.
Linkedin: link / slobodan-gajic
Twitter: / _slobodangajic_
Portfolio: https://bobangajicsm.github.io/portfo...