Tencent IMWeb Frontend Team
Nov 29, 2021 · Fundamentals
Why JavaScript’s with Statement Can Leak Data and Slow Down Your Code
This article explains how the JavaScript with statement creates a new lexical scope that can unintentionally create global variables, cause data leakage, and dramatically degrade performance, while also covering LHS/RHS lookup, execution contexts, variable/activation objects, and scope chain mechanics.
Execution ContextJavaScriptLHS
0 likes · 8 min read