The "with" keyword can be used to inject arbitrary objects into a scope chain. It can also introduce security vulnerabilities. It is forbidden in strict mode for a reason. It adds some interesting capabilities to the language, but ultimately it is not a must-use keyword.

4m read timeFrom dev.to
Post cover image
Table of contents
5 Comments

Sort: