JavaScript

Difference Between yield and yield*

What yield and yield* do in generators, how they differ, and when to use each, with examples.

Jan 15, 2021

Encoding Pitfalls to Watch

Two web bugs traced to encoding: URL fragments in the URL API and window.btoa choking on non-ASCII.

Dec 16, 2020

JIT vs AOT

This article provides a comparison between JIT (Just-In-Time) and AOT (Ahead-Of-Time) compilation, including their advantages, implementation details, and practical differences in various programming environments.

Dec 6, 2020

Limitations of React's componentWillUnmount

This article discusses the limitations of React's componentWillUnmount lifecycle method, including its advantages, implementation details, and relevant resources to help developers understand and work around these constraints.

Dec 5, 2020

TypeScript Enum vs. ES6 Symbol

Compares TypeScript enums and ES6 symbols so you know when to choose each for identifiers and constants.

Dec 2, 2020

JavaScript Regular Expressions: Literal vs Constructor

This article explains the differences between JavaScript regular expression literals and constructors, including their advantages, implementation details, and related resources. These concepts help improve efficiency when working with regular expressions in JavaScript.

Nov 28, 2020

Daily Challenge — Predict the Rendered Value

A Vue question on reactivity and lifecycle: what value renders on the page, and why.

Oct 31, 2020

Daily Challenge — Avoid Infinite Loop

A frontend quiz: modify the code to avoid an infinite loop, with analysis and solutions (Web Worker, async approaches).

Oct 29, 2020

JavaScript事件循环

本文是作者对JavaScript事件循环的介绍,包括JavaScript事件循环的优势、实现细节、相关资料等,这些步骤可以帮助作者提高JavaScript事件循环的效率。

Sep 26, 2020

Package.json Usage Tips and Tricks

Advanced usage tips for package.json beyond basic dependencies, including version enforcement, custom fields, and practical configuration techniques.

Jul 26, 2020