Tagged articles
4 articles
Page 1 of 1
37 Interactive Technology Team
37 Interactive Technology Team
Dec 12, 2022 · Frontend Development

Understanding the JavaScript "this" Keyword: From Basics to Deep Insights

This article demystifies JavaScript’s this keyword by covering its runtime binding rules in global, function, method, constructor, prototype, and arrow contexts, explaining strict‑mode differences, call/apply/bind usage, event‑handler behavior, and the underlying ECMAScript reference mechanics that determine its value.

Arrow FunctionsJavaScriptcall apply bind
0 likes · 16 min read
Understanding the JavaScript "this" Keyword: From Basics to Deep Insights
php Courses
php Courses
Sep 7, 2022 · Frontend Development

Understanding JavaScript this Binding Rules and Their Priorities

This article explains the four JavaScript this‑binding rules—default, implicit, explicit (call/apply/bind), and new—illustrates each with code examples, compares their precedence, and shows how arrow functions affect this binding in modern ES6 code.

BINDJavaScript__call__
0 likes · 11 min read
Understanding JavaScript this Binding Rules and Their Priorities
Hujiang Technology
Hujiang Technology
Nov 14, 2016 · Frontend Development

When Not to Use Arrow Functions in JavaScript

This article explains the pitfalls of JavaScript arrow functions, showing when they break object methods, event callbacks, and constructors, and offers clear examples and corrected code to help developers choose between arrow functions and traditional function expressions.

Arrow FunctionsJavaScriptes6
0 likes · 7 min read
When Not to Use Arrow Functions in JavaScript
Java High-Performance Architecture
Java High-Performance Architecture
Oct 20, 2015 · Frontend Development

Mastering JavaScript’s ‘this’: Common Pitfalls and Clear Examples

Understanding JavaScript’s ‘this’ keyword can be confusing, so this guide breaks down its core concept as the current object’s owner and walks through three illustrative examples that reveal how ‘this’ resolves to the global object, a specific object, or remains undefined in various contexts.

JavaScriptfrontendfunction context
0 likes · 3 min read
Mastering JavaScript’s ‘this’: Common Pitfalls and Clear Examples