Posts

JavaScript Refresher and Detailed Study - Part 2

Last updated on 16 Aug 2026 Post series: Prev Part (1) Contents Copying reference to an object; Copying object - shallow copy and deep copy Non-trivial confusion in JS due to same variable at times holding contents directly, but at times only holding a reference to the contents Modern frontend web development, especially within React ecosystem, uses Functional Programming (FP) and not traditional Object-Oriented Programming (OOP) React 'Functional Components' is bad terminology from traditional Software Engineering perspective - they are simply 'Render Functions' this is rarely used in modern React, Next.js, or Astro applications this in Arrow functions (ES6(2015)) has lexical scope (its container in code); this in standard JS functions has dynamic scope (who called it) this is used in libraries to provide function chaining Limited usage of new in modern web apps for legacy APIs (e.g. Date, URL); Modern libraries/frameworks prefer JS factory functio...