JavaScript

JavaScript Array Undefined Items

This article discusses undefined items in JavaScript arrays, explaining the differences between explicitly undefined …

· 1 min
JavaScript

Inline JavaScript Event Binding

How to bind events with inline JavaScript, how it differs from React’s model, and practical tips for native usage.

· 1 min
JavaScript

Difference Between yield and yield*

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

· 2 min
JavaScriptReact

Encoding Pitfalls to Watch

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

· 1 min
JavaScript

JIT vs AOT

This article provides a comparison between JIT (Just-In-Time) and AOT (Ahead-Of-Time) compilation, including their …

· 2 min
JavaScriptCompilation

Limitations of React's componentWillUnmount

This article discusses the limitations of React's componentWillUnmount lifecycle method, including its advantages, …

· 2 min
ReactJavaScript

TypeScript Enum vs. ES6 Symbol

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

· 2 min
JavaScriptTypeScript

JavaScript Regular Expressions: Literal vs Constructor

This article explains the differences between JavaScript regular expression literals and constructors, including their …

· 1 min
JavaScript

Daily Challenge — Predict the Rendered Value

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

· 1 min
JavaScriptVue

Daily Challenge — Avoid Infinite Loop

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

· 1 min
JavaScript

JavaScript Event Loop

This post explains the JavaScript event loop, including the model, tasks, and references to help you understand it more …

· 4 min
JavaScript

Package.json Usage Tips and Tricks

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

· 3 min
Node.jsnpmJavaScriptDevelopment

Closures Explained (Simple Guide)

Clarifying what closures are, why they matter in JavaScript, and practice problems that cement the idea.

· 3 min
JavaScript

Lazy Loading Principles

This article introduces lazy loading principles, including usage scenarios and implementation details, to improve …

· 2 min
JavaScript

Fancy Console

Discover how to create fancy console outputs with colorful styles and ASCII art to make your webpage console more …

· 1 min
consoleJavaScriptCode Magic

Native Browser Support for JS Base64

This post walks through browser-native JS Base64 support, covering use cases and implementation details to help you work …

· 1 min
JavaScript

Assertion Practices in JS Development and Debugging

This post discusses assertion practices in JS development and debugging, including concepts, use cases, and references.

· 3 min
JavaScript

No Nested Ternary

This article introduces the no-nested-ternary rule, including its advantages, implementation details, and relevant …

· 1 min
Code QualityJavaScript

[Translation] Event Handler Naming in React

This post translates and discusses naming conventions for event handlers in React, with practical guidance and …

· 3 min
ReactJavaScriptTranslation

window.open Basics

A clarification on window.open URLs, relative vs absolute paths, dev vs build behavior, and why both may 'work' during …

· 2 min
JavaScript

JS Precision Math: Choosing big.js vs mathjs

This post compares big.js and mathjs for JavaScript precision calculations, including pros, size, and usage …

· 2 min
JavaScript

JavaScript method vs function vs member

This article explains the differences between JavaScript methods, functions, and members, including their advantages, …

· 4 min
JavaScriptTypeScript

Effective JavaScript Reading Notes

This article contains my reading notes on Effective JavaScript, including key insights, implementation details, and …

· 5 min
JavaScript

Why I Hate Lodash

This article explains why I hate Lodash, including usage scenarios and implementation details, to improve understanding …

· 2 min
JavaScript

Time Formatting in JavaScript

This post covers time formatting in JavaScript, including UTC display and locale-based formatting.

· 2 min
JavaScript