Tagged articles
93 articles
Page 1 of 1
JavaScript
JavaScript
Dec 24, 2025 · Frontend Development

Beyond the Classic for Loop: Modern JavaScript Iteration Techniques

This article examines why traditional JavaScript for loops are often suboptimal and introduces more readable, functional, and powerful alternatives such as array methods, for...of, for...in, and the spread operator, while also outlining scenarios where the classic for loop still shines.

JavaScriptarray methodses6
0 likes · 7 min read
Beyond the Classic for Loop: Modern JavaScript Iteration Techniques
JavaScript
JavaScript
Dec 3, 2025 · Frontend Development

Why IIFEs Are Obsolete: Embrace Modern ES Modules in JavaScript

This article reviews the historic use of Immediately Invoked Function Expressions (IIFE) in JavaScript, outlines their drawbacks, and demonstrates how ES6 native modules provide a cleaner, more maintainable alternative with practical migration guidance.

IIFEJavaScriptModules
0 likes · 4 min read
Why IIFEs Are Obsolete: Embrace Modern ES Modules in JavaScript
JavaScript
JavaScript
Oct 29, 2025 · Frontend Development

Why Traditional JavaScript for Loops Are Losing Ground—and What to Use Instead

While the classic JavaScript for loop remains fundamental, modern ECMAScript features and array methods like forEach, map, filter, and newer constructs such as for…of and the spread operator offer more readable, functional, and often more efficient alternatives, each suited to different scenarios.

JavaScriptarray methodses6
0 likes · 7 min read
Why Traditional JavaScript for Loops Are Losing Ground—and What to Use Instead
JavaScript
JavaScript
Sep 4, 2025 · Frontend Development

Beyond the Classic for Loop: Modern JavaScript Iteration Techniques

This article examines why the traditional JavaScript for loop is often suboptimal and explores newer, more readable and functional iteration methods such as array helpers, for...of, for...in, and the spread operator, while also outlining scenarios where the classic for loop still shines.

JavaScriptarray methodses6
0 likes · 7 min read
Beyond the Classic for Loop: Modern JavaScript Iteration Techniques
JavaScript
JavaScript
May 17, 2025 · Frontend Development

Master JavaScript Destructuring: 7 Powerful Tricks to Write Cleaner Code

Learn how JavaScript's ES6 destructuring assignment can simplify tasks such as swapping variables, extracting object properties, handling function parameters, processing arrays with rest elements, returning multiple values, using dynamic property names, and iterating over data structures, all with concise, readable code examples.

JavaScriptes6frontend
0 likes · 6 min read
Master JavaScript Destructuring: 7 Powerful Tricks to Write Cleaner Code
JavaScript
JavaScript
May 6, 2025 · Frontend Development

Why Sticking to ES5 Is Holding Your JavaScript Back – Modern Alternatives Explained

This article examines common ES5 JavaScript patterns—such as var declarations, mixed function definitions, callback hell, the arguments object, constructor‑based inheritance, string concatenation, and manual loops—and shows how modern ES6+ features like let/const, arrow functions, promises, rest parameters, classes, template literals, spread syntax, and array methods provide cleaner, safer, and more maintainable code.

Arrow FunctionsJavaScriptasync/await
0 likes · 8 min read
Why Sticking to ES5 Is Holding Your JavaScript Back – Modern Alternatives Explained
JavaScript
JavaScript
May 1, 2025 · Frontend Development

Avoid Common Arrow Function Pitfalls in JavaScript

Arrow functions in ES6 offer concise syntax, but they come with several traps—such as lacking their own this binding, being unusable as constructors, missing arguments, and incompatibility with call/apply/bind—so developers must know when to avoid them and when they’re appropriate.

JavaScriptbest practiceses6
0 likes · 5 min read
Avoid Common Arrow Function Pitfalls in JavaScript
JavaScript
JavaScript
Apr 12, 2025 · Frontend Development

20 Powerful JavaScript One‑Liners to Boost Your Coding Efficiency

Discover 20 concise JavaScript one‑line tricks—from array deduplication and variable swapping to debouncing and date calculations—that streamline common tasks, boost performance, and make your code more elegant, all explained with clear examples and brief explanations.

JavaScriptOne-linersTips
0 likes · 7 min read
20 Powerful JavaScript One‑Liners to Boost Your Coding Efficiency
JavaScript
JavaScript
Apr 8, 2025 · Frontend Development

10 Common JavaScript Destructuring Pitfalls and How to Avoid Them

This article outlines ten frequent JavaScript destructuring mistakes—such as unpacking undefined objects, confusing renaming syntax, overly nested patterns, array gaps, default value clashes, accidental literal targets, rest element ordering, return value misconceptions, name conflicts, and performance hits—and provides clear strategies to prevent each issue.

DestructuringJavaScriptcode pitfalls
0 likes · 6 min read
10 Common JavaScript Destructuring Pitfalls and How to Avoid Them
JavaScript
JavaScript
Feb 23, 2025 · Frontend Development

12 Essential Destructuring Techniques to Write Cleaner JavaScript

This article presents twelve practical ES6 destructuring patterns—including array basics, object renaming, default values, nested structures, spread operator usage, function parameters, dynamic keys, variable swapping, chained assignments, regex matching, module imports, and conditional destructuring—to help developers write more concise and readable JavaScript code.

Coding TipsJavaScriptWeb Development
0 likes · 4 min read
12 Essential Destructuring Techniques to Write Cleaner JavaScript
JavaScript
JavaScript
Jan 15, 2025 · Frontend Development

Why Traditional JavaScript for Loops Are Obsolete and Better Alternatives

Although the classic JavaScript for loop remains fundamental, modern ECMAScript features and array methods like forEach, map, filter, and newer constructs such as for…of provide more readable, functional, and concise ways to iterate, while the traditional loop still has niche uses where precise control or performance matters.

JavaScriptes6for loop
0 likes · 7 min read
Why Traditional JavaScript for Loops Are Obsolete and Better Alternatives
JavaScript
JavaScript
Jan 6, 2025 · Frontend Development

16 Essential JavaScript Shortcuts to Write Cleaner, Faster Code

Discover 16 practical JavaScript shortcuts—from ternary operators and nullish coalescing to dynamic object properties—that streamline code, improve readability, and boost development speed, complete with side‑by‑side traditional and concise examples for everyday projects.

JavaScriptbest practicescode snippets
0 likes · 4 min read
16 Essential JavaScript Shortcuts to Write Cleaner, Faster Code
JavaScript
JavaScript
Jan 2, 2025 · Frontend Development

7 Practical Arrow Function Patterns to Master ‘this’ in JavaScript

This article explores seven common scenarios where JavaScript arrow functions elegantly resolve the notorious ‘this’ binding issues—ranging from object methods and event callbacks to constructors, prototype methods, array callbacks, timers, and dynamic contexts—helping developers write cleaner, more maintainable code.

Arrow FunctionsJavaScriptes6
0 likes · 7 min read
7 Practical Arrow Function Patterns to Master ‘this’ in JavaScript
21CTO
21CTO
Aug 20, 2024 · Frontend Development

5 Compelling Reasons to Skip JavaScript Frameworks

This article explains why using a JavaScript framework isn’t always necessary, outlining five practical scenarios—simple projects, pure HTML/CSS solutions, modern ES6 features, creative freedom, and HTMX—that allow developers to build efficient web applications without added complexity.

HTMXJavaScriptWeb Development
0 likes · 7 min read
5 Compelling Reasons to Skip JavaScript Frameworks
21CTO
21CTO
Jul 2, 2024 · Frontend Development

When Should You Skip a JavaScript Framework? 5 Practical Reasons

This article outlines five clear scenarios—simple projects, sufficient HTML/CSS, modern ES6 features, desire for creative freedom, and HTMX alternatives—where using a JavaScript framework adds unnecessary complexity and can be safely avoided.

HTMXJavaScriptWeb Development
0 likes · 6 min read
When Should You Skip a JavaScript Framework? 5 Practical Reasons
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jun 6, 2024 · Frontend Development

Common JavaScript Pitfalls and Best Practices for Frontend Development

This article examines frequent JavaScript errors such as improper data handling, unsafe destructuring, unreliable default values, misuse of array methods, object method calls, async/await error handling, JSON parsing, mutable references, concurrent async operations, and over‑defensive coding, and provides concise ES6‑compatible refactorings to prevent white‑screen crashes and improve robustness.

Error Handlingbest practiceses6
0 likes · 10 min read
Common JavaScript Pitfalls and Best Practices for Frontend Development
Architecture Digest
Architecture Digest
Jun 2, 2024 · Fundamentals

Understanding Unicode, UTF-16, and String Length Issues in JavaScript

This article explains why JavaScript string length behaves unexpectedly with Unicode characters, describes UTF‑16 encoding and surrogate pairs, and demonstrates ES6 techniques such as for‑of loops, spread syntax, the u regex flag, codePointAt, and normalize to handle Unicode correctly.

JavaScriptUTF-16Unicode
0 likes · 7 min read
Understanding Unicode, UTF-16, and String Length Issues in JavaScript
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Feb 5, 2024 · Frontend Development

Lesser‑Known but Useful ES6 Features and Techniques

This article introduces several relatively obscure yet practical ES6 features—including Object.entries/Object.fromEntries, Symbol, WeakMap/WeakSet, Promise.allSettled, BigInt, Array.of/Array.from, and the .at and flat methods—explaining their purpose and providing code examples for each.

ArrayBIGINTJavaScript
0 likes · 8 min read
Lesser‑Known but Useful ES6 Features and Techniques
Sohu Tech Products
Sohu Tech Products
Dec 6, 2023 · Fundamentals

Understanding JavaScript Constructors, Prototypes, Classes, and Inheritance

The article thoroughly explains JavaScript constructors, prototype chains, the this binding, and ES6 class syntax, showing how functions become constructors with new, how prototypes link objects, custom new/instanceof implementations, and various inheritance patterns—including parasitic combination inheritance realized by class extends and super.

ClassConstructorInheritance
0 likes · 22 min read
Understanding JavaScript Constructors, Prototypes, Classes, and Inheritance
ByteFE
ByteFE
Aug 16, 2023 · Frontend Development

Evolution of Frontend Module Systems and Major Module Specifications

This article traces the history of frontend modularization from early global‑function scripts through IIFE, CommonJS, ES6 modules, AMD and CMD, explaining why modularization is needed, how each approach works, their drawbacks, and the key features of each specification.

AMDCommonJScmd
0 likes · 14 min read
Evolution of Frontend Module Systems and Major Module Specifications
Yunxuetang Frontend Team
Yunxuetang Frontend Team
Apr 14, 2023 · Frontend Development

Top Front-End Topics: Encoding, Mobile Adaptation, ES6, Pinia, Git & Memory

This article curates essential front‑end resources covering character encoding fundamentals, mobile screen adaptation strategies, practical ES6 tricks, Pinia state‑management advantages over Vuex, classic Git operations for code merging, and crucial browser memory knowledge for stable web applications.

browser memorycharacter encodinges6
0 likes · 4 min read
Top Front-End Topics: Encoding, Mobile Adaptation, ES6, Pinia, Git & Memory
JavaScript
JavaScript
Jan 19, 2023 · Frontend Development

13 JavaScript Tricks to Write Cleaner, Faster Code

Discover 13 practical JavaScript shortcuts—from using array includes in conditionals to leveraging the spread operator and object shorthand—that dramatically simplify code, improve readability, and boost performance for modern web development.

Code OptimizationJavaScriptTips
0 likes · 5 min read
13 JavaScript Tricks to Write Cleaner, Faster Code
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 30, 2022 · Frontend Development

Enhanced ES‑Check Implementation with Multi‑File Detection, HTML Support, and SourceMap Parsing

This article examines existing ES‑check tools, compares community and mpx implementations, and presents a comprehensive enhanced version that supports multi‑file detection, HTML parsing, source‑map resolution, and both CLI and library usage, detailing its underlying principles, code examples, and practical advantages for frontend development.

CLICompatibilityJavaScript
0 likes · 20 min read
Enhanced ES‑Check Implementation with Multi‑File Detection, HTML Support, and SourceMap Parsing
Programmer DD
Programmer DD
Aug 16, 2022 · Fundamentals

Why Does JavaScript .length Miscount Emoji? A Deep Dive into UTF‑16 and Unicode

This article explains why JavaScript's string length property returns unexpected values for Unicode characters like emojis, explores UTF‑16 encoding rules, and demonstrates modern ES6 techniques—including for‑of loops, spread syntax, and the \u{…} and /u regex flags—to correctly handle Unicode strings.

EmojiJavaScriptUTF-16
0 likes · 9 min read
Why Does JavaScript .length Miscount Emoji? A Deep Dive into UTF‑16 and Unicode
Sohu Tech Products
Sohu Tech Products
Aug 3, 2022 · Frontend Development

Comprehensive ES6 Knowledge Q&A Summary

This article provides a detailed question‑and‑answer overview of ES6, covering its definition, differences from ES5/ES2015, Babel, let, string/array/number/Object enhancements, new data structures like Symbol, Set, Map, Proxy, Reflect, Promise, Iterator, generators, async/await, classes, modules, and practical coding recommendations for modern front‑end development.

JavaScriptWeb Developmentes6
0 likes · 21 min read
Comprehensive ES6 Knowledge Q&A Summary
php Courses
php Courses
Jul 20, 2022 · Frontend Development

20 Essential JavaScript Hacks and Tricks

This article presents a curated list of twenty practical JavaScript hacks—including array initialization, sorting, logical operators, spread/rest, optional chaining, and more—demonstrating how modern ES6+ features can reduce code size, boost performance, and simplify common programming tasks.

Code OptimizationJavaScriptWeb Development
0 likes · 3 min read
20 Essential JavaScript Hacks and Tricks
JavaScript
JavaScript
Jul 20, 2022 · Frontend Development

13 Essential JavaScript Code Optimizations Every Developer Should Know

This article presents thirteen practical JavaScript techniques—from consolidating if statements and simplifying ternary logic to using spread operators and template strings—that help developers write cleaner, more efficient code while reducing redundancy and improving readability.

Code OptimizationJavaScriptes6
0 likes · 5 min read
13 Essential JavaScript Code Optimizations Every Developer Should Know
php Courses
php Courses
Apr 29, 2022 · Frontend Development

20 Commonly Used ES6 Techniques for Frontend Development

This article presents twenty practical ES6 tricks—including array shuffling, character filtering, string reversal, numeric base conversion, object merging, strict vs. loose equality, destructuring, variable swapping, palindrome checking, optional chaining, ternary operator, random selection, object freezing, duplicate removal, decimal precision, array clearing, color conversion, min‑max extraction, nullish coalescing, and false‑value filtering—each illustrated with concise code examples.

CodingTipsJavaScriptWebDevelopment
0 likes · 4 min read
20 Commonly Used ES6 Techniques for Frontend Development
Sohu Tech Products
Sohu Tech Products
Apr 27, 2022 · Frontend Development

Progressive Optimization Journey of a WeChat Mini Program

This article chronicles the step‑by‑step optimization of a WeChat mini‑program, covering native stack choices, ES6+ adoption, modular architecture, versioning, code formatting, request abstraction, UI component migration, ESLint, unit testing, routing, environment handling, Gulp workflow, CSS variables, and sub‑package strategies.

ESLintFrontend OptimizationSubpackage
0 likes · 34 min read
Progressive Optimization Journey of a WeChat Mini Program
php Courses
php Courses
Apr 14, 2022 · Frontend Development

Common ES6 Pitfalls and Improvements: A Leader’s Code Review Rants

The article presents a series of JavaScript ES6 code‑review critiques, explaining why older ES5 patterns are problematic and demonstrating modern ES6 alternatives such as destructuring, spread operators, template literals, optional chaining, async/await, and array methods with clear code examples.

Code reviewDestructuringJavaScript
0 likes · 8 min read
Common ES6 Pitfalls and Improvements: A Leader’s Code Review Rants
TAL Education Technology
TAL Education Technology
Feb 24, 2022 · Frontend Development

Optimizing JavaScript Code with ES6 Features: Destructuring, Array Merging, Includes, Optional Chaining, and Flattening

This article demonstrates how to modernize and simplify JavaScript code by applying ES6 techniques such as object destructuring, Set‑based array deduplication, includes() for condition checks, optional chaining for safe property access, and array flattening methods, improving readability and maintainability.

Code OptimizationDestructuringJavaScript
0 likes · 8 min read
Optimizing JavaScript Code with ES6 Features: Destructuring, Array Merging, Includes, Optional Chaining, and Flattening
NiuNiu MaTe
NiuNiu MaTe
Feb 10, 2022 · Fundamentals

Master the Proxy Pattern with a Fun Story and Go Example

This article explains the proxy design pattern through an engaging cartoon story, analyzes the roles of client, target, and proxy, discusses its benefits and variations, and shows practical usage examples such as ES6 Proxy, virtual image lazy‑loading, and a Golang implementation.

Design PatternsGolangProxy Pattern
0 likes · 4 min read
Master the Proxy Pattern with a Fun Story and Go Example
Taobao Frontend Technology
Taobao Frontend Technology
Jan 6, 2022 · Frontend Development

Should You Still Transpile ES6? A Deep Dive into Browser Compatibility and Performance

This article examines how modern browsers now support most ES6 features, compares the bytecode size of native ES6 syntax versus Babel‑transpiled ES5 code across a range of language features, and explains when skipping transpilation can improve performance while still handling polyfills and runtime requirements.

Transpilationbabelbrowser compatibility
0 likes · 26 min read
Should You Still Transpile ES6? A Deep Dive into Browser Compatibility and Performance
ELab Team
ELab Team
Nov 19, 2021 · Frontend Development

Mastering Front-End Module Systems: From IIFE to ES6 Modules

This article provides a comprehensive overview of front‑end modularization, covering the definition of modules, the evolution from early script tags through AMD/CMD to CommonJS and ES6, and explains why modern module syntax enables better dependency management and tree‑shaking.

AMDCommonJSRequireJS
0 likes · 13 min read
Mastering Front-End Module Systems: From IIFE to ES6 Modules
Open Source Tech Hub
Open Source Tech Hub
Aug 18, 2021 · Frontend Development

Mastering JavaScript Promises: Concepts, Usage, and Common Pitfalls

This article explains what JavaScript Promises are, their three immutable states, typical use‑cases for handling asynchronous operations, practical syntax and examples—including then and catch methods—while also highlighting their advantages over callback hell and their inherent limitations.

JavaScriptPromisecatch
0 likes · 9 min read
Mastering JavaScript Promises: Concepts, Usage, and Common Pitfalls
ELab Team
ELab Team
Aug 6, 2021 · Fundamentals

Fixing JS Module Errors: CommonJS vs ES6 and Circular Dependency Solutions

This article examines why JavaScript applications encounter runtime errors when using CommonJS or ES6 modules, explains the underlying module loading mechanisms, highlights pitfalls of circular dependencies, and provides practical solutions—including webpack plugins and code adjustments—to reliably resolve such issues.

CommonJSModulescircular-dependency
0 likes · 20 min read
Fixing JS Module Errors: CommonJS vs ES6 and Circular Dependency Solutions
ByteFE
ByteFE
Jan 26, 2021 · Frontend Development

A Comprehensive Guide to JavaScript Type Checking: Methods, Limitations, and Best Practices

This comprehensive guide examines JavaScript type-checking mechanisms such as typeof, instanceof, constructor, Array.isArray, and Object.prototype.toString, detailing their underlying principles, cross-realm limitations, prototype chain behaviors, and optimal implementation strategies for reliable frontend development.

Cross-RealmJavaScriptObject Prototype
0 likes · 10 min read
A Comprehensive Guide to JavaScript Type Checking: Methods, Limitations, and Best Practices
Sohu Tech Products
Sohu Tech Products
Nov 4, 2020 · Frontend Development

24 Modern ES6 Code Snippets to Solve Practical JavaScript Problems

This article presents a curated collection of 24 practical ES6 code snippets that address common front‑end challenges such as DOM manipulation, event handling, network requests, timing utilities, and file system operations, providing ready‑to‑use solutions for developers.

DOMcode snippetses6
0 likes · 12 min read
24 Modern ES6 Code Snippets to Solve Practical JavaScript Problems
Fulu Network R&D Team
Fulu Network R&D Team
Oct 22, 2020 · Frontend Development

Frontend Technology Stack and Project Structure Guide for React‑Based Merchant Applications

This article introduces the essential frontend technology stack—including React, Webpack, Ant Design, DVA, ES6, and Axios—explains the typical project directory layout, walks through source code organization, and provides practical steps and tips for building merchant‑side applications with a React‑DVA architecture.

Ant DesignDVAReact
0 likes · 15 min read
Frontend Technology Stack and Project Structure Guide for React‑Based Merchant Applications
vivo Internet Technology
vivo Internet Technology
Jul 15, 2020 · Frontend Development

Babel: JavaScript Compiler – History, Usage, and Advanced Configuration

Babel, originally 6to5, is a JavaScript compiler that transforms modern ES6+ code into browser‑compatible JavaScript using a parser, plugins, and presets like @babel/preset‑env, with configurable polyfill strategies and runtime helpers, enabling developers to target older environments via a simple CLI workflow.

CLIPolyfillTranspilation
0 likes · 21 min read
Babel: JavaScript Compiler – History, Usage, and Advanced Configuration
vivo Internet Technology
vivo Internet Technology
Jun 29, 2020 · Frontend Development

Understanding CommonJS and Front-End Module Systems

The article traces JavaScript’s module evolution from inline scripts to CommonJS’s file‑scoped exports and require system, explains its minimal bundler implementation, compares AMD and CMD alternatives, and finally introduces native ES6 import/export syntax, highlighting key differences and the gradual deprecation of CommonJS.

AMDCommonJSNode.js
0 likes · 21 min read
Understanding CommonJS and Front-End Module Systems
360 Quality & Efficiency
360 Quality & Efficiency
May 22, 2020 · Frontend Development

Front-End Optimization Techniques: ES6 Syntax, JavaScript Array Methods, and CSS Performance Tips

This article presents practical front‑end optimization strategies, covering ES6 syntax shortcuts, efficient JavaScript array operations, careful use of closures and timers, as well as CSS tricks like sprites, animation, and avoiding repaint/reflow to improve website performance and cross‑browser compatibility.

CSSJavaScriptes6
0 likes · 6 min read
Front-End Optimization Techniques: ES6 Syntax, JavaScript Array Methods, and CSS Performance Tips
Sohu Tech Products
Sohu Tech Products
Feb 26, 2020 · Frontend Development

Comprehensive Guide to JavaScript Inheritance Types and Their Usage

This article provides a thorough overview of JavaScript inheritance mechanisms—including prototype chain, constructor stealing, combination, parasitic, and ES6 class inheritance—detailing their implementations, advantages, drawbacks, and practical usage with clear code examples and best‑practice recommendations.

ClassConstructorES5
0 likes · 12 min read
Comprehensive Guide to JavaScript Inheritance Types and Their Usage
Qunar Tech Salon
Qunar Tech Salon
Dec 5, 2019 · Frontend Development

Evolution of JavaScript: From Prototype Methods to Async/Await and Modern Features

This article traces JavaScript’s evolution, covering the enrichment of prototype methods, standardization of classes and modules, the rise of asynchronous patterns like callbacks, promises, generators, async/await, and modern syntax features such as block scope, symbols, BigInt, reflection, and useful syntactic sugar.

AsyncBIGINTGenerators
0 likes · 28 min read
Evolution of JavaScript: From Prototype Methods to Async/Await and Modern Features
MaoDou Frontend Team
MaoDou Frontend Team
Jun 17, 2019 · Frontend Development

Mastering JavaScript Function Parameters: Defaults, Rest, and TDZ Explained

This article explores JavaScript functions as first‑class citizens, detailing how to set default parameter values in ES5 and ES6, the impact on the arguments object, the temporary dead zone for defaults, and the usage and constraints of rest parameters with practical code examples.

Default ValuesFunction ParametersJavaScript
0 likes · 6 min read
Mastering JavaScript Function Parameters: Defaults, Rest, and TDZ Explained
Node Underground
Node Underground
Mar 25, 2019 · Frontend Development

What’s New in JavaScript? A Deep Dive into ES2015‑ES2019 Features

This article walks you through the most important JavaScript language enhancements from ES2015 to ES2019, covering let/const, arrow functions, classes, modules, promises, async/await, new string and object methods, collections, generators, and upcoming ESNext proposals, all with clear examples and code snippets.

ES2015ES2018es6
0 likes · 47 min read
What’s New in JavaScript? A Deep Dive into ES2015‑ES2019 Features
Yuewen Frontend Team
Yuewen Frontend Team
Sep 28, 2018 · Frontend Development

Master JavaScript Generators: Control Iteration and Boost Your Code

This article explains ES6 JavaScript generators, covering their syntax, how they differ from regular iterators, the role of the yield keyword, available generator methods, and practical examples such as custom generators, random number streams, throttling, Fibonacci sequences, and integrating generators with HTML to simplify iterative tasks.

AsynchronousIteratorJavaScript
0 likes · 13 min read
Master JavaScript Generators: Control Iteration and Boost Your Code
Youzan Coder
Youzan Coder
Sep 21, 2018 · Fundamentals

First Encounter with Lazy List: Implementing Lazy Evaluation in JavaScript

The article explains Haskell‑style lazy lists, shows why lazy evaluation is useful, and walks through implementing lazy lists in JavaScript using custom classes, the ES6 iterable protocol, and generator functions, providing examples such as repeat, cycle, iterate, range and lazy operators like map, filter, take, and zip.

Infinite ListIteratorJavaScript
0 likes · 10 min read
First Encounter with Lazy List: Implementing Lazy Evaluation in JavaScript
Node Underground
Node Underground
Jun 4, 2018 · Frontend Development

Master Modern JavaScript: Dive into ECMAScript 6 with Zakas’s Free Online Guide

Nicolas C. Zakas, renowned JavaScript expert and creator of ESLint, offers his comprehensive, open‑source online version of the published book *Understanding ECMAScript 6*, which explains ES6 syntax, new features, and their rationale compared to ES5, making it essential reading for any JavaScript developer.

ECMAScript6es6frontend development
0 likes · 2 min read
Master Modern JavaScript: Dive into ECMAScript 6 with Zakas’s Free Online Guide
JD Tech
JD Tech
Apr 10, 2018 · Frontend Development

How to Make an npm Package Support Tree Shaking Using the pkg.module Field

This article explains the concept of Tree Shaking, compares CommonJS and ES6 module formats, shows how to configure npm's pkg.module field and bundler settings (Webpack and Rollup) so that a package can be tree‑shakable while remaining compatible with existing tooling.

Module BundlingRollupes6
0 likes · 7 min read
How to Make an npm Package Support Tree Shaking Using the pkg.module Field
21CTO
21CTO
Jan 17, 2018 · Frontend Development

Why I Love JavaScript: Uncovering Its Quirks and Powerful Features

Despite its reputation for oddities and browser inconsistencies, JavaScript has evolved with ES6 features like default parameters, arrow functions, template literals, destructuring, and more, making it expressive and efficient; this article explores those quirks and explains why the author prefers JavaScript for modern development.

Code ExamplesJavaScriptes6
0 likes · 6 min read
Why I Love JavaScript: Uncovering Its Quirks and Powerful Features
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Jan 16, 2018 · Frontend Development

Mastering JavaScript Module Systems: From CommonJS to ES6 and Beyond

This comprehensive guide explores JavaScript module mechanisms—including CommonJS, Node.js core and file modules, AMD, CMD, UMD, and ES6 import/export—detailing their advantages, loading strategies, code examples, circular dependencies, and best practices for modern front‑end and back‑end development.

AMDCommonJSModules
0 likes · 25 min read
Mastering JavaScript Module Systems: From CommonJS to ES6 and Beyond
BiCaiJia Technology Team
BiCaiJia Technology Team
Sep 9, 2017 · Frontend Development

Master ES6 Promises: From Basics to Advanced Chaining Techniques

This article introduces ES6 Promise, explains its constructor, resolve and reject mechanisms, demonstrates chaining with then, error handling with catch, and shows advanced utilities like Promise.all and Promise.race, all illustrated with clear code examples and visual diagrams for JavaScript developers.

AsynchronousPromisees6
0 likes · 10 min read
Master ES6 Promises: From Basics to Advanced Chaining Techniques
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Sep 3, 2017 · Frontend Development

Why Does let Appear Not to Be Hoisted? Unraveling JavaScript’s Variable Lifecycle

This article chronicles the author’s two‑month journey of understanding JavaScript’s let declaration, exploring its block scope, temporal dead zone, per‑iteration bindings, and the nuanced differences from var and function hoisting, while debunking common misconceptions with code examples and spec references.

Variable Scopees6frontend
0 likes · 10 min read
Why Does let Appear Not to Be Hoisted? Unraveling JavaScript’s Variable Lifecycle
Baidu Intelligent Testing
Baidu Intelligent Testing
Aug 18, 2017 · Frontend Development

Practical Guide to ES6 Features and Performance Comparisons in Node.js

This article reviews the compatibility of various Node.js versions with ES6 features, explains key ES6 constructs such as let, const, template literals, default parameters, destructuring, and classes, and presents performance benchmarks comparing these features to their ES5 equivalents, concluding with practical recommendations for developers.

ClassJavaScriptNode.js
0 likes · 6 min read
Practical Guide to ES6 Features and Performance Comparisons in Node.js
Vipshop Quality Engineering
Vipshop Quality Engineering
Aug 8, 2017 · Frontend Development

Why for…in Breaks JavaScript Arrays and How for…of Fixes It

This article examines a production incident caused by using the ES5 for...in loop to iterate over arrays, explains its pitfalls such as prototype pollution and string indexes, and demonstrates why switching to the ES6 for...of construct provides safer, more predictable array traversal.

JavaScriptarray iterationes6
0 likes · 6 min read
Why for…in Breaks JavaScript Arrays and How for…of Fixes It
Java High-Performance Architecture
Java High-Performance Architecture
Jun 10, 2017 · Frontend Development

Master 7 Essential ES6 Features in Just 30 Minutes

This concise guide introduces seven frequently used ES6 features—including let, const, arrow functions, default parameters, destructuring, object shorthand, and template literals—explaining each concept so you can grasp them in roughly half an hour.

Arrow FunctionsJavaScriptconst
0 likes · 1 min read
Master 7 Essential ES6 Features in Just 30 Minutes
Qunar Tech Salon
Qunar Tech Salon
Jun 2, 2017 · Frontend Development

A Review of Frontend Moduleization Development and Tooling

This article reviews the evolution of frontend moduleization over the past decade, discusses the problems of early script inclusion, presents various solutions such as namespaces, closures, CommonJS, ES6 modules, and modern build tools, and illustrates each approach with concrete JavaScript code examples.

CommonJSJavaScriptNode
0 likes · 16 min read
A Review of Frontend Moduleization Development and Tooling
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
May 25, 2017 · Frontend Development

Master Essential ES6 Features: Let/Const, Arrow Functions, Templates, and More

This article offers a practical guide to the most commonly used ES6 features—let/const, arrow functions, template literals, destructuring, default parameters, spread operator, object literals, and classes—explaining their syntax, behavior, and real‑world usage to help developers quickly master modern JavaScript.

Arrow FunctionsDestructuringTemplate literals
0 likes · 12 min read
Master Essential ES6 Features: Let/Const, Arrow Functions, Templates, and More
Dada Group Technology
Dada Group Technology
Apr 14, 2017 · Frontend Development

Babel Optimization: Solving Bundle Size and Performance Issues

This article explores how to optimize Babel usage to reduce bundle size and improve performance by addressing helper duplication, third-party module handling, and import optimization through transform-runtime, include patterns, and import transformation plugins.

JavaScriptTranspilationbabel
0 likes · 9 min read
Babel Optimization: Solving Bundle Size and Performance Issues
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Apr 13, 2017 · Frontend Development

Top 10 Must‑Know ES6 Features That Transform Frontend Development

This article provides a concise overview of the ten most impactful ES6 features—including default parameters, template literals, multi‑line strings, destructuring, enhanced object literals, arrow functions, promises, block‑scoped let/const, classes, and modules—explaining their syntax, benefits, and practical usage for modern JavaScript development.

ES6 FeaturesJavaScriptModern JavaScript
0 likes · 14 min read
Top 10 Must‑Know ES6 Features That Transform Frontend Development
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Apr 9, 2017 · Frontend Development

Boost Mini Program Development with Essential ES6 Features

This article explains how key ES6 features—arrow functions, array methods, destructuring, enhanced object literals, classes, and block‑scoped variables—can streamline WeChat Mini Program development, improve code readability, and increase development efficiency.

Arrow FunctionsJavaScriptWeChat Mini Program
0 likes · 8 min read
Boost Mini Program Development with Essential ES6 Features
Tongcheng Travel Technology Center
Tongcheng Travel Technology Center
Mar 29, 2017 · Frontend Development

Recap of Frontend Technology Salon Session 1: ES6, Webpack, and Asynchronous Programming

The article recaps the first Frontend Technology Salon, covering ES6 fundamentals, Webpack packaging, and practical ES6 asynchronous programming examples, offering detailed explanations and code demonstrations for frontend developers and highlights common pitfalls and browser compatibility issues.

JavaScriptasynchronous programminges6
0 likes · 5 min read
Recap of Frontend Technology Salon Session 1: ES6, Webpack, and Asynchronous Programming
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
Taobao Frontend Technology
Taobao Frontend Technology
Nov 3, 2016 · Frontend Development

Unlock ES6: Master Advanced Modules, Symbols, and Async Patterns

This article delves into ES6’s advanced features—including dynamic module loading, Symbol usage, iterators, Maps, Sets, Weak collections, Promises, async‑await, generators, and meta‑programming tools like Proxy and Reflect—providing concise explanations, code snippets, and practical guidance for modern JavaScript development.

GeneratorsJavaScriptProxy
0 likes · 20 min read
Unlock ES6: Master Advanced Modules, Symbols, and Async Patterns
Aotu Lab
Aotu Lab
Oct 28, 2016 · Frontend Development

Mastering JavaScript Decorators: From Python Concepts to ES6 Implementation

This article explains how decorators—originally popularized in Python—can be applied in JavaScript ES6, covering their syntax, class and property use cases, underlying mechanics with Object.defineProperty, and practical Babel transpilation steps.

JavaScriptPythondecorators
0 likes · 10 min read
Mastering JavaScript Decorators: From Python Concepts to ES6 Implementation
CSS Magic
CSS Magic
Jun 21, 2016 · Frontend Development

The Definitive Gulp 4 Beginner’s Guide (Translation)

This comprehensive guide introduces Gulp 4, compares it with Grunt, explains its Node.js requirements, walks through installing the development version, details the core API and common plugins, and provides complete example gulpfile scripts for tasks such as building, watching, live‑reloading, and serving static files.

JavaScriptNode.jsPlugins
0 likes · 28 min read
The Definitive Gulp 4 Beginner’s Guide (Translation)
Java High-Performance Architecture
Java High-Performance Architecture
Mar 23, 2016 · Frontend Development

Boost Your JavaScript with ES6: Templates, Multiline Strings, Defaults, and Destructuring

This article introduces practical ES6 features such as template literals, multiline strings, default parameters, and destructuring assignment, demonstrates how they simplify code compared to ES5, and provides a step‑by‑step guide to using Babel with Gulp for seamless ES6‑to‑ES5 conversion.

JavaScriptTemplate literalsbabel
0 likes · 4 min read
Boost Your JavaScript with ES6: Templates, Multiline Strings, Defaults, and Destructuring
21CTO
21CTO
Mar 8, 2016 · Frontend Development

Master JavaScript Scope & Context: From Basics to Advanced Patterns

This article explains the fundamental differences between scope and context in JavaScript, covers variable scope, execution contexts, the scope chain, closures, module patterns, call/apply/bind methods, and ES6 arrow functions, providing clear code examples for each concept.

BINDExecutionContextJavaScript
0 likes · 14 min read
Master JavaScript Scope & Context: From Basics to Advanced Patterns
CSS Magic
CSS Magic
Feb 4, 2016 · Frontend Development

How to Build a JavaScript Library with Webpack and ES6

This tutorial explains how to define a JavaScript library, set up a clean project structure, use Babel to transpile ES6, configure Webpack for development and production builds (including UMD output), add npm scripts, run Mocha/Chai tests, and manage related configuration files.

babeles6javascript library
0 likes · 11 min read
How to Build a JavaScript Library with Webpack and ES6
Qunar Tech Salon
Qunar Tech Salon
Mar 6, 2015 · Frontend Development

Key Features of ES6 (ECMAScript 2015)

This article enumerates the major ES6 (ECMAScript 2015) features, including arrow functions, classes, enhanced object literals, template strings, destructuring, default/rest/spread parameters, let/const, iterators, generators, Unicode support, modules, data structures like Map and Set, proxies, symbols, promises, and more.

ECMAScript2015JavaScriptes6
0 likes · 2 min read
Key Features of ES6 (ECMAScript 2015)
Baidu Tech Salon
Baidu Tech Salon
May 21, 2014 · Frontend Development

Show‑off JavaScript Techniques to Impress Others

The article showcases a suite of flashy JavaScript tricks—alternative anonymous‑function syntaxes, the void operator for undefined, logical‑operator conditionals, optional semicolons, early ES6 features, AMD wrapping, the Function constructor, and native DOM selectors—while warning that some shortcuts hurt readability and should be used sparingly.

AMDAnonymous FunctionsDOM
0 likes · 6 min read
Show‑off JavaScript Techniques to Impress Others