Tagged articles
8 articles
Page 1 of 1
Sohu Tech Products
Sohu Tech Products
Feb 8, 2023 · Frontend Development

JavaScript's Forgotten Keyword: with

The article explains the obscure JavaScript 'with' keyword, demonstrating its syntax and behavior, detailing how it manipulates the scope chain, and outlining the numerous drawbacks—including strict‑mode prohibition, variable shadowing, security risks, performance penalties, and poor maintainability—that make its use inadvisable.

JavaScriptScope ChainWITH
0 likes · 7 min read
JavaScript's Forgotten Keyword: with
vivo Internet Technology
vivo Internet Technology
Aug 14, 2019 · Fundamentals

Writing High‑Quality JavaScript Functions: Execution Mechanism, Robustness, Functional Programming and Design Patterns

This introductory article explains how JavaScript functions are created and executed—detailing heap allocation, name hoisting, stack frames, parameter binding, scope‑chain lookup and closures—while offering practical tips for reducing lookups, avoiding recursion overflow, and laying the foundation for a series on robust, functional, and pattern‑driven function design.

Execution MechanismScope Chainfunctions
0 likes · 21 min read
Writing High‑Quality JavaScript Functions: Execution Mechanism, Robustness, Functional Programming and Design Patterns
21CTO
21CTO
Oct 11, 2015 · Frontend Development

Unveiling JavaScript Closures: How Scope Chains and Memory Work Under the Hood

This article demystifies JavaScript closures by explaining when they are created, how the scope chain and lexical environments operate, why closures persist in memory, and how nested functions and the garbage collector interact, illustrated with clear code examples and diagrams.

Memory ManagementScope Chainclosure
0 likes · 16 min read
Unveiling JavaScript Closures: How Scope Chains and Memory Work Under the Hood