Tagged articles
8 articles
Page 1 of 1
JavaScript
JavaScript
Jan 4, 2026 · Frontend Development

Mastering JavaScript’s ‘this’: 4 Binding Rules and Arrow Function Secrets

This article explains why the JavaScript this keyword is notoriously tricky, demonstrates its behavior with concrete examples, outlines the four binding rules (default, implicit, explicit, new), shows how arrow functions simplify this handling, and offers practical best‑practice tips for writing robust code.

Arrow FunctionsBindingJavaScript
0 likes · 6 min read
Mastering JavaScript’s ‘this’: 4 Binding Rules and Arrow Function Secrets
JavaScript
JavaScript
Dec 30, 2024 · Frontend Development

Master JavaScript’s ‘this’: 4 Binding Rules, Arrow Functions & Best Practices

This article demystifies JavaScript’s notoriously tricky ‘this’ keyword by explaining its four binding rules—default, implicit, explicit, and new—showing practical code examples, illustrating how arrow functions inherit lexical this, and offering best‑practice tips to avoid common pitfalls in modern front‑end development.

BindingJavaScriptarrow function
0 likes · 7 min read
Master JavaScript’s ‘this’: 4 Binding Rules, Arrow Functions & Best Practices
iQIYI Technical Product Team
iQIYI Technical Product Team
Apr 12, 2019 · Frontend Development

Design and Implementation of a JavaScript Automatic Binding Tool for the iQIYI RND Framework

The paper presents a custom JavaScript automatic binding tool for iQIYI’s React Node Desktop framework that parses C++ headers with libclang, applies user‑written YAML rules, generates multi‑inheritance‑aware wrappers via the Mate abstraction, and abstracts engine specifics through a Node‑Addon‑API‑based common layer to support both V8 and JavaScriptCore.

BindingC++JavaScript
0 likes · 24 min read
Design and Implementation of a JavaScript Automatic Binding Tool for the iQIYI RND Framework