Tagged articles

JavaScript

2446 articles · Page 5 of 25
JavaScript
JavaScript
Feb 6, 2025 · Frontend Development

Boost Your JavaScript Debugging: Proven Tips to Find and Fix Errors Faster

Learn practical JavaScript debugging techniques—including source maps, strategic breakpoints, advanced console tools, async debugging, performance analysis, error monitoring, environment optimization, and test‑driven debugging—to quickly locate and fix errors in complex web applications.

JavaScriptTestingbreakpoints
0 likes · 4 min read
Boost Your JavaScript Debugging: Proven Tips to Find and Fix Errors Faster
Full-Stack Cultivation Path
Full-Stack Cultivation Path
Feb 6, 2025 · Frontend Development

Chrome Introduces the New moveBefore DOM API

Chrome 133+ adds the moveBefore method, a new DOM operation that moves elements while preserving their state, offering developers a simpler alternative to removeChild/insertBefore and improving scenarios like video playback, focus retention, and animation continuity.

ChromeDOMJavaScript
0 likes · 7 min read
Chrome Introduces the New moveBefore DOM API
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Feb 6, 2025 · Frontend Development

Component Communication in React 18 and Vue 3: Parent‑Child, Sibling, and Cross‑Level Patterns

This article compares React 18 and Vue 3 component communication techniques—including parent‑child, sibling, and cross‑level patterns—provides detailed code examples for props, emit, context, provide/inject, and summarizes their respective advantages and use cases in modern web development.

Context APIJavaScriptReAct
0 likes · 13 min read
Component Communication in React 18 and Vue 3: Parent‑Child, Sibling, and Cross‑Level Patterns
JavaScript
JavaScript
Feb 5, 2025 · Frontend Development

8 Essential JavaScript String Tricks to Boost Your Code Efficiency

This article presents eight practical JavaScript string manipulation techniques—including template literals, slice shortcuts, repeat, padding, includes, case conversion, split/join, and advanced regex replacements—each illustrated with clear code examples to help developers write cleaner, more efficient code.

Code examplesJavaScriptString Manipulation
0 likes · 4 min read
8 Essential JavaScript String Tricks to Boost Your Code Efficiency
21CTO
21CTO
Feb 2, 2025 · Frontend Development

5 JavaScript Libraries That Will Be Obsolete by 2025 – Modern Alternatives

This article identifies five JavaScript libraries—jQuery, Moment.js, Lodash, Underscore.js, and RequireJS—that are likely to become outdated by 2025, explains why they’re being phased out, and recommends modern native APIs, ES6+ features, and lightweight alternatives such as native DOM methods, date‑fns, Luxon, and bundlers like Webpack or Vite.

2025FrontendJavaScript
0 likes · 10 min read
5 JavaScript Libraries That Will Be Obsolete by 2025 – Modern Alternatives
21CTO
21CTO
Feb 2, 2025 · Frontend Development

How JavaScript Was Born in Just One Week: The Untold Story

This article recounts how Brendan Eich created the first prototype of JavaScript in a single week for Netscape, detailing the language's origins, rapid development, early naming, and its lasting impact on modern web development.

JavaScriptNetscapeWeb Development
0 likes · 5 min read
How JavaScript Was Born in Just One Week: The Untold Story
21CTO
21CTO
Jan 30, 2025 · Artificial Intelligence

What Are the Top Tech Trends Shaping 2025? AI, Cloud, DevOps & JavaScript Insights

This article compiles the latest strategic technology trends for 2025, including Gartner's AI forecasts, DORA's 2024 DevOps metrics, GitHub's Octoverse data showing Python's rise, DataDog's cloud security findings, and the 2024 JavaScript ecosystem survey, offering a comprehensive view of the evolving tech landscape.

AIGitHubJavaScript
0 likes · 19 min read
What Are the Top Tech Trends Shaping 2025? AI, Cloud, DevOps & JavaScript Insights
vivo Internet Technology
vivo Internet Technology
Jan 22, 2025 · Frontend Development

Developing a Babel Plugin to Automatically Add Optional Chaining (?.) and Prevent TypeError

The article explains how to create a custom Babel plugin that automatically transforms risky member and call expressions into optional‑chaining equivalents during bundling, using configurable include/exclude patterns and short‑circuit optimizations, thereby preventing TypeError in large JavaScript codebases while noting a modest bundle‑size increase.

BabelJavaScriptTypeError Prevention
0 likes · 14 min read
Developing a Babel Plugin to Automatically Add Optional Chaining (?.) and Prevent TypeError
Aikesheng Open Source Community
Aikesheng Open Source Community
Jan 21, 2025 · Databases

New and Changed Features in MySQL 9.2.0

MySQL 9.2.0 introduces the CREATE_SPATIAL_REFERENCE_SYSTEM privilege, JavaScript library support, enhanced SQL stored routine APIs, ENUM and SET handling, EXPLAIN FORMAT=JSON version 2, while deprecating several version‑token functions and privileges and removing keyword restrictions, providing a comprehensive overview of additions, deprecations, and removals.

DatabaseJavaScriptMySQL
0 likes · 9 min read
New and Changed Features in MySQL 9.2.0
JavaScript
JavaScript
Jan 20, 2025 · Frontend Development

Essential JavaScript Coding Standards for Clean, Maintainable Code

This guide outlines comprehensive JavaScript coding standards—including naming conventions, strict mode, variable declarations, indentation, semicolons, string usage, spacing, comments, module imports, conditional expressions, async handling, destructuring, error handling, function design, and performance tips—to improve readability, consistency, and maintainability across teams.

FrontendJavaScriptStyle Guide
0 likes · 5 min read
Essential JavaScript Coding Standards for Clean, Maintainable Code
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jan 20, 2025 · Game Development

Building a Super Mario MVP with LeaferJS and Vue

This article demonstrates how to create a minimal Super Mario‑style platformer using JavaScript, LeaferJS for graphics rendering, and Vue for UI and map editing, covering background looping, scene management, sprite classes, a simple physics engine with gravity, collision detection, jumping, camera follow, scoring, and a basic victory condition.

Game DevelopmentJavaScriptLeaferJS
0 likes · 8 min read
Building a Super Mario MVP with LeaferJS and Vue
JavaScript
JavaScript
Jan 18, 2025 · Frontend Development

8 Essential JavaScript Error‑Handling Techniques for More Resilient Apps

Master robust JavaScript error handling with eight practical strategies—including async try‑catch, global handlers, custom error types, graceful degradation, error boundaries, promise chain management, log level structuring, and automatic recovery—to boost application stability and improve user experience.

Best PracticesError handlingJavaScript
0 likes · 6 min read
8 Essential JavaScript Error‑Handling Techniques for More Resilient Apps
大转转FE
大转转FE
Jan 17, 2025 · Frontend Development

ESLint: Past, Present, and Future

This article traces the evolution of ESLint from its early role as a simple JavaScript linter to the introduction of the Flat Config system in ESLint 9, examines the challenges of extends, multi‑format support, plugins, and shared configurations, and explores new tools like Config Inspector, eslint‑flat‑config‑utils, ESLint Stylistic, and future multi‑language support.

ESLintFlat ConfigJavaScript
0 likes · 17 min read
ESLint: Past, Present, and Future
JavaScript
JavaScript
Jan 16, 2025 · Frontend Development

8 Common JavaScript Pitfalls Every Developer Should Avoid

This article outlines eight frequent JavaScript traps—from type coercion and variable hoisting to this binding, closures, numeric precision, array method quirks, Promise misuse, and event‑listener memory leaks—explaining why they occur and how to resolve them.

FrontendJavaScriptbugs
0 likes · 5 min read
8 Common JavaScript Pitfalls Every Developer Should Avoid
21CTO
21CTO
Jan 15, 2025 · Frontend Development

How to Become a Front-End Developer by 2025: A Complete Roadmap

This guide outlines a step‑by‑step roadmap for aspiring front‑end developers, covering essential fundamentals, workspace setup, HTML/CSS, JavaScript, version control, React and bonus skills, with realistic timelines to help you reach a professional level by 2025.

FrontendGitHTML
0 likes · 8 min read
How to Become a Front-End Developer by 2025: A Complete Roadmap
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
Java Architect Essentials
Java Architect Essentials
Jan 14, 2025 · Databases

Implementing Online User Counting with Redis Sorted Sets (ZSET)

This article explains how to track online users by storing their identifiers in a Redis sorted set, using expiration timestamps as scores, and demonstrates adding, querying, and cleaning up entries with ZADD, ZRANGEBYSCORE, ZREMRANGEBYSCORE, and ZREM commands in both Java and JavaScript.

Backend DevelopmentJavaJavaScript
0 likes · 7 min read
Implementing Online User Counting with Redis Sorted Sets (ZSET)
JavaScript
JavaScript
Jan 13, 2025 · Frontend Development

Boost Your JavaScript Productivity with 6 Powerful Tricks

This article presents six practical JavaScript techniques—including advanced object destructuring, functional array methods, async/await patterns, optional chaining, Set/Map usage, and sophisticated template literals—each illustrated with clear code examples to dramatically improve development efficiency.

Async/AwaitJavaScriptSet
0 likes · 5 min read
Boost Your JavaScript Productivity with 6 Powerful Tricks
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jan 12, 2025 · Frontend Development

Understanding and Implementing Vue's nextTick Mechanism

This article explains the inner workings of Vue's nextTick function, detailing its callback queue, flushing logic, timer selection across environments, Promise‑based return, and provides a step‑by‑step JavaScript implementation with test cases and the full Vue source code.

JavaScriptPromiseVue
0 likes · 10 min read
Understanding and Implementing Vue's nextTick Mechanism
JavaScript
JavaScript
Jan 10, 2025 · Mobile Development

Boost WeChat Mini Program Performance: 12 Proven Optimization Techniques

Learn how to dramatically improve the speed and responsiveness of your WeChat Mini Program by applying twelve practical optimization strategies, including first‑screen loading, data preloading, image handling, setData reduction, event throttling, selector queries, component lifecycles, list rendering keys, caching, timers, IntersectionObserver, and network request management.

JavaScriptMobile DevelopmentOptimization
0 likes · 5 min read
Boost WeChat Mini Program Performance: 12 Proven Optimization Techniques
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jan 10, 2025 · Frontend Development

Implementing a Seamless Carousel with Vue: Dynamic Data Switching, Transition Effects, and Auto‑Play Controls

This tutorial explains how to build a seamless carousel in Vue by dynamically switching a data list, using the Transition component for enter/leave animations, adding an auto‑play timer, handling hover pause/resume, and solving visibility‑change flicker with concise CSS and JavaScript code.

CarouselJavaScriptTransition
0 likes · 9 min read
Implementing a Seamless Carousel with Vue: Dynamic Data Switching, Transition Effects, and Auto‑Play Controls
JavaScript
JavaScript
Jan 9, 2025 · Frontend Development

12 Little‑Known JavaScript Tricks Every Developer Should Know

This article reveals twelve obscure JavaScript features—from the function length property and the versatile void operator to advanced uses of optional chaining, Symbol.asyncIterator, and the Intl API—providing practical code examples and visual illustrations for modern web developers.

Advanced JavaScriptES2020JavaScript
0 likes · 7 min read
12 Little‑Known JavaScript Tricks Every Developer Should Know
Sohu Tech Products
Sohu Tech Products
Jan 8, 2025 · Frontend Development

React‑scan: Fine‑Grained Performance Monitoring for React Applications

React‑scan is a lightweight library that automatically monitors and visualizes component render activity in real‑time, requiring minimal setup, to help developers quickly identify and eliminate unnecessary re‑renders in complex React applications, improving performance without altering existing code.

JavaScriptPerformance optimizationReAct
0 likes · 11 min read
React‑scan: Fine‑Grained Performance Monitoring for React Applications
JavaScript
JavaScript
Jan 8, 2025 · Frontend Development

14 Must-Have VSCode Extensions to Supercharge Your Front‑End Workflow

This guide lists fourteen essential VSCode extensions for front‑end developers, covering AI code assistants, linting, formatting, navigation, error feedback, dependency size visualization, API testing, Git enhancements, path completion, live server, real‑time execution, project management, and quick code running, each with key features and tips.

AI assistantsExtensionsJavaScript
0 likes · 11 min read
14 Must-Have VSCode Extensions to Supercharge Your Front‑End Workflow
FunTester
FunTester
Jan 8, 2025 · Frontend Development

Master Chrome Extension APIs: History, Downloads, and Storage Management

This article provides a comprehensive guide to Chrome extension development, covering the History, Downloads, and Storage APIs with practical code examples, advanced usage tips, privacy considerations, and custom scripts for efficient data management.

Chrome ExtensionDownloads APIHistory API
0 likes · 10 min read
Master Chrome Extension APIs: History, Downloads, and Storage Management
JavaScript
JavaScript
Jan 7, 2025 · Frontend Development

25 Must‑Know ES202x Features to Supercharge Your JavaScript Code

This article introduces 25 powerful ECMAScript enhancements—including optional chaining, nullish coalescing, private class fields, dynamic imports, and decorators—explaining their benefits and providing concise code examples to help developers write cleaner, more efficient JavaScript.

ES202xJavaScriptNew Features
0 likes · 7 min read
25 Must‑Know ES202x Features to Supercharge Your JavaScript Code
Alibaba Cloud Developer
Alibaba Cloud Developer
Jan 6, 2025 · Artificial Intelligence

Create a Real‑Time AI Voice Assistant on Alibaba Cloud in Minutes

Learn how to quickly build a custom AI voice assistant using Alibaba Cloud's ARTC real‑time audio‑video service, integrate it into websites or mobile apps with a few JavaScript lines, and customize workflows, agents, and private knowledge bases through the IMS and Function Compute platform.

AIJavaScriptReal-time Voice Interaction
0 likes · 9 min read
Create a Real‑Time AI Voice Assistant on Alibaba Cloud in Minutes
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.

Best PracticesJavaScriptShortcuts
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 FunctionsFrontendJavaScript
0 likes · 7 min read
7 Practical Arrow Function Patterns to Master ‘this’ in JavaScript
Full-Stack Cultivation Path
Full-Stack Cultivation Path
Dec 31, 2024 · Fundamentals

Unlocking Code Quality: A 17k‑Word Deep Dive into Code Maintainability

This comprehensive guide explains what code maintainability means, why it matters for long‑term project health, and how to measure and improve it using concrete metrics such as naming conventions, comment density, code volume, logical line count, cyclomatic complexity, similarity, redundancy, and module dependencies, with practical examples and tool recommendations for JavaScript front‑end development.

ESLintJavaScriptcode metrics
0 likes · 50 min read
Unlocking Code Quality: A 17k‑Word Deep Dive into Code Maintainability
JavaScript
JavaScript
Dec 31, 2024 · Frontend Development

Detect and Fix Common JavaScript Memory Leaks in Front‑End Development

This guide explains what JavaScript memory leaks are, illustrates typical front‑end leak scenarios such as forgotten timers, detached DOM references, improper closures, global variables, open WebSockets, misuse of Map/Set, and console logs, and provides practical solutions to prevent and resolve each issue.

FrontendGarbage CollectionJavaScript
0 likes · 7 min read
Detect and Fix Common JavaScript Memory Leaks in Front‑End Development
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.

BindingFrontendJavaScript
0 likes · 7 min read
Master JavaScript’s ‘this’: 4 Binding Rules, Arrow Functions & Best Practices
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 29, 2024 · Frontend Development

Encapsulating WebSocket with Reconnection, Heartbeat, and Event Handling in JavaScript/TypeScript

This article explains how to wrap WebSocket in a reusable JavaScript/TypeScript class that provides automatic reconnection, heartbeat monitoring, event callbacks, connection state management, and graceful destruction, while also comparing WebSocket advantages over traditional HTTP polling for real‑time H5 applications.

JavaScriptRealtimeTypeScript
0 likes · 14 min read
Encapsulating WebSocket with Reconnection, Heartbeat, and Event Handling in JavaScript/TypeScript
JavaScript
JavaScript
Dec 28, 2024 · Frontend Development

12 Essential JavaScript String Tricks Every Front‑End Developer Should Know

Discover twelve practical JavaScript string manipulation techniques—from padStart/padEnd and replaceAll to template literals, includes, and regex matching—that streamline formatting, validation, and data extraction, helping front‑end developers write cleaner, more efficient code.

Coding TipsJavaScriptWeb Development
0 likes · 6 min read
12 Essential JavaScript String Tricks Every Front‑End Developer Should Know
21CTO
21CTO
Dec 27, 2024 · Frontend Development

What Front‑End Innovations Will Redefine Web Development in 2025?

This article explores the major front‑end trends shaping 2025, including Angular Signals, RxJS enhancements, standalone components, new React server‑side features, Vue performance upgrades, next‑gen build tools like Vite 6 and Bun, and the growing impact of AI on developer workflows.

2025AIBuild Tools
0 likes · 10 min read
What Front‑End Innovations Will Redefine Web Development in 2025?
JavaScript
JavaScript
Dec 27, 2024 · Frontend Development

Unlock ES2024: 8 Game-Changing JavaScript Features You Must Use

This article introduces eight practical ES2024 JavaScript enhancements—including the modern Temporal API, Object.groupBy, RegExp match indices, Atomics.waitAsync, ArrayBuffer.transfer, structured error causes, WeakSet cleanup, and Promise.withResolvers—showing concise before‑and‑after code examples that improve readability, performance, and debugging.

Atomics.waitAsyncJavaScriptObject.groupBy
0 likes · 6 min read
Unlock ES2024: 8 Game-Changing JavaScript Features You Must Use
21CTO
21CTO
Dec 26, 2024 · Fundamentals

2024 Programming Language Rankings: What JetBrains' Report Reveals

JetBrains' 2024 Developer Ecosystem Report, based on responses from over 23,000 developers, shows JavaScript remains the most used language, while TypeScript, Rust, and Python surge in popularity, with detailed usage percentages, growth trends, and the new Language Outlook Index highlighting future prospects.

Developer SurveyJavaScriptJetBrains
0 likes · 5 min read
2024 Programming Language Rankings: What JetBrains' Report Reveals
JavaScript
JavaScript
Dec 26, 2024 · Frontend Development

12 Essential Mobile Web Issues and How to Fix Them

This article outlines twelve common mobile web challenges—from 1px borders and 300 ms click delays to safe‑area handling and image loading optimization—providing concise CSS and JavaScript solutions to improve responsiveness, usability, and performance across diverse devices.

FrontendJavaScriptPerformance
0 likes · 6 min read
12 Essential Mobile Web Issues and How to Fix Them
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 26, 2024 · Fundamentals

Monorepo Tool Selection and Migration Strategy: Comparative Analysis and Best Practices for 2024

This article examines the challenges of Multirepo architectures, evaluates popular 2024 Monorepo tools such as Rush, Turborepo, Lerna, Yarn Workspaces, Pnpm Workspaces, and Nx, and provides a detailed comparison to guide teams in selecting the most suitable tool and workflow for efficient dependency and version management.

JavaScriptVersion Controlmonorepo
0 likes · 26 min read
Monorepo Tool Selection and Migration Strategy: Comparative Analysis and Best Practices for 2024
JavaScript
JavaScript
Dec 25, 2024 · Frontend Development

7 Essential JavaScript Array Methods Every Developer Should Master

This guide explores seven powerful JavaScript array methods—map, filter, reduce, forEach, find, some, and every—detailing their syntax, practical examples, performance tips, and how to combine them for efficient data manipulation in modern web development.

JavaScriptPerformancearray methods
0 likes · 9 min read
7 Essential JavaScript Array Methods Every Developer Should Master
JavaScript
JavaScript
Dec 23, 2024 · Frontend Development

Unlock ES2024: 8 Game-Changing JavaScript Features You Must Try

This article introduces eight powerful ES2024 JavaScript enhancements—including Promise.withResolvers, ArrayBuffer.transfer, Unicode string utilities, the regex v flag, Object.groupBy, Atomics.waitAsync, and new non‑mutating array methods—explaining their usage, benefits, and performance impact for modern web development.

ArrayBufferAtomicsJavaScript
0 likes · 6 min read
Unlock ES2024: 8 Game-Changing JavaScript Features You Must Try
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 21, 2024 · Frontend Development

Understanding the New “use” Hook in React 19 and Its Impact on UI Development

This article introduces React 19’s new use hook that reduces reliance on useEffect, explains how to work with resolved promises, demonstrates conditional usage and integration with Suspense through detailed code examples, and discusses practical considerations when using the hook in modern frontend projects.

JavaScriptReActReact19
0 likes · 9 min read
Understanding the New “use” Hook in React 19 and Its Impact on UI Development
Alibaba Cloud Developer
Alibaba Cloud Developer
Dec 17, 2024 · Frontend Development

Choosing the Best LangChain Text Splitter for Frontend LLM Apps

This article compares five LangChain text splitters—CharacterTextSplitter, RecursiveCharacterTextSplitter, TokenTextSplitter, MarkdownTextSplitter, and LatexTextSplitter—by examining their principles, pros and cons, and ideal use cases, helping developers select the most suitable splitter for their frontend large‑model applications.

JavaScriptLLMLangChain
0 likes · 10 min read
Choosing the Best LangChain Text Splitter for Frontend LLM Apps
ByteDance Web Infra
ByteDance Web Infra
Dec 17, 2024 · Frontend Development

Midscene.js: Multimodal AI‑Powered UI Automation for Web Frontend Testing

Midscene.js, an open‑source UI automation framework from ByteDance Web Infra, leverages multimodal AI to simplify writing, maintaining, and debugging web UI tests with JavaScript or YAML integrations, while discussing its origins, usage patterns, limitations, cost, and security considerations.

JavaScriptMidscene.jsPlaywright
0 likes · 11 min read
Midscene.js: Multimodal AI‑Powered UI Automation for Web Frontend Testing
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 17, 2024 · Frontend Development

13 Ways to Pass Data Between Components in Vue 3

This article comprehensively outlines thirteen distinct methods for component communication in Vue 3, covering parent‑to‑child props, child‑to‑parent emits, sibling communication via mitt, $attrs, refs, v‑model, provide/inject, router parameters, Vuex, Pinia, browser storage, window object, and globalProperties, with concise code examples for each.

JavaScriptVueVue3
0 likes · 14 min read
13 Ways to Pass Data Between Components in Vue 3
JavaScript
JavaScript
Dec 16, 2024 · Frontend Development

Master Optional Chaining and Nullish Coalescing in JavaScript

This article explains how JavaScript's optional chaining (?.) and nullish coalescing (??) operators simplify safe access to nested object properties and provide reliable default values, replacing older verbose patterns with concise, readable code.

Code examplesES2020Frontend
0 likes · 7 min read
Master Optional Chaining and Nullish Coalescing in JavaScript
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 13, 2024 · Frontend Development

Using CustomEvent for Global Event Broadcasting in Frontend Development (React & Vue)

This article explains how to leverage the JavaScript CustomEvent API to create and dispatch custom events for efficient, decoupled communication between components in complex React and Vue applications, providing syntax details, practical code examples, and guidance on appropriate usage scenarios.

CustomEventEvent BroadcastingJavaScript
0 likes · 6 min read
Using CustomEvent for Global Event Broadcasting in Frontend Development (React & Vue)
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 12, 2024 · Frontend Development

Understanding JavaScript setTimeout and setInterval and Implementing setInterval Using setTimeout

This article explains the fundamentals and execution order of JavaScript's setTimeout and setInterval functions, discusses their parameters and return values, demonstrates why setTimeout is asynchronous, shows how to cancel timers, and provides a custom recursive setTimeout solution that mimics setInterval behavior.

FrontendJavaScriptTimer
0 likes · 12 min read
Understanding JavaScript setTimeout and setInterval and Implementing setInterval Using setTimeout
21CTO
21CTO
Dec 9, 2024 · Frontend Development

Which JavaScript Libraries Should You Drop by 2025? A Front‑End Guide

The article explains why legacy JavaScript libraries like jQuery, Moment.js, Lodash, Underscore.js and RequireJS are becoming obsolete, outlines the performance and maintenance drawbacks of keeping them, and recommends modern native APIs or lightweight alternatives to keep front‑end stacks fast and up‑to‑date by 2025.

2025FrontendJavaScript
0 likes · 6 min read
Which JavaScript Libraries Should You Drop by 2025? A Front‑End Guide
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 3, 2024 · Frontend Development

Explicit and Implicit Type Conversion in JavaScript and the Use of Boolean

This article explains JavaScript's explicit and implicit type conversions, demonstrates how to use constructors and methods like String(), Number(), Boolean(), toString(), parseInt(), details falsy and truthy values, and shows practical applications of Boolean in conditional statements, array filtering, and TypeScript.

Explicit ConversionJavaScriptarray filtering
0 likes · 7 min read
Explicit and Implicit Type Conversion in JavaScript and the Use of Boolean
21CTO
21CTO
Dec 2, 2024 · Frontend Development

Who Really Owns JavaScript? Inside the Deno vs Oracle Trademark Battle

The article examines the legal clash between Deno and Oracle over the JavaScript trademark, tracing its history from Netscape's creation to today's lawsuit, and explores the potential outcomes and their impact on the developer community and the future of web programming.

DenoJavaScriptOracle
0 likes · 9 min read
Who Really Owns JavaScript? Inside the Deno vs Oracle Trademark Battle
IT Services Circle
IT Services Circle
Dec 2, 2024 · Frontend Development

Vite 6.0 Release: New Environment API, Updated Defaults, and Growing Ecosystem

Vite 6.0 launched on November 26, boosting weekly npm downloads to 17 million, introducing an experimental Environment API for multi‑environment support, updating defaults for resolve conditions, JSON handling, HTML resources, and Sass, while expanding its ecosystem with new frameworks and major company adoption.

Build ToolEnvironment APIJavaScript
0 likes · 5 min read
Vite 6.0 Release: New Environment API, Updated Defaults, and Growing Ecosystem
JD Tech Talk
JD Tech Talk
Dec 2, 2024 · Frontend Development

Building a Chrome Extension for Timestamp Conversion

This article walks through the design, implementation, and debugging of a Chrome extension that converts between timestamps and human‑readable dates, covering manifest configuration, background and popup scripts, UI layout, and usage instructions.

Chrome ExtensionJavaScriptTimestamp Conversion
0 likes · 7 min read
Building a Chrome Extension for Timestamp Conversion
Goodme Frontend Team
Goodme Frontend Team
Dec 2, 2024 · Frontend Development

How to Generate Paginated PDFs from HTML with html2canvas and jsPDF

This article explains how to convert HTML content—including text, images, and tables—into PDF files using html2canvas and jsPDF, and details a dynamic pagination technique to prevent content truncation across pages, while also covering performance and export considerations.

FrontendJavaScripthtml2canvas
0 likes · 19 min read
How to Generate Paginated PDFs from HTML with html2canvas and jsPDF
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 2, 2024 · Frontend Development

Hand-Drawn Route Planning and Road Matching with AMap: Implementation, GPX Export, and Animation Optimization

This article presents a complete front‑end solution for hand‑drawing cycling routes on AMap, applying road‑matching correction, exporting to GPX, adding waypoint‑based route planning, and enhancing map animations with custom setCenter and setFitView functions, all illustrated with full source code.

AmapHand DrawingJavaScript
0 likes · 11 min read
Hand-Drawn Route Planning and Road Matching with AMap: Implementation, GPX Export, and Animation Optimization
Tencent Docs Tech Team
Tencent Docs Tech Team
Nov 29, 2024 · Frontend Development

Keeping Long Tasks Under 50 ms: RAIL Model and Front‑End Optimization Strategies

This article explains why long tasks over 50 ms cause UI lag, introduces the RAIL performance model, outlines how to identify long tasks using Chrome DevTools and the Long Tasks API, and provides practical front‑end optimization techniques such as task splitting, code splitting, and asynchronous scheduling.

FrontendJavaScriptLong Tasks
0 likes · 10 min read
Keeping Long Tasks Under 50 ms: RAIL Model and Front‑End Optimization Strategies
Alibaba Cloud Developer
Alibaba Cloud Developer
Nov 28, 2024 · Artificial Intelligence

Understanding Tokenizers and Embeddings in Large Language Models

This article introduces the core concepts of tokenizers and embeddings in large language models, explains how they convert text into numeric IDs and dense vectors, compares different tokenization strategies, and provides practical JavaScript and TensorFlow.js code examples for beginners.

AI FundamentalsJavaScriptLLM
0 likes · 10 min read
Understanding Tokenizers and Embeddings in Large Language Models
Selected Java Interview Questions
Selected Java Interview Questions
Nov 26, 2024 · Frontend Development

Typical JavaScript Bundle Sizes of Popular Websites in 2024

A 2024 analysis by Nikita Prokopov of uncompressed JavaScript file sizes across a range of popular websites shows sizes varying from a tiny 0.1 MB for jQuery to over 12 MB for heavyweight platforms like YouTube and Booking.com, highlighting the diversity of front‑end payloads.

FrontendJavaScriptWeb Performance
0 likes · 3 min read
Typical JavaScript Bundle Sizes of Popular Websites in 2024
System Architect Go
System Architect Go
Nov 24, 2024 · Artificial Intelligence

Building a Web Voice Chatbot with Whisper, llama.cpp, and LLM

This article demonstrates how to build a web‑based voice chatbot by integrating Whisper speech‑to‑text, llama.cpp LLM inference, and WebSocket communication, detailing both the frontend JavaScript implementation and the Python FastAPI backend, along with Docker deployment and example code.

FastAPIJavaScriptLLM
0 likes · 10 min read
Building a Web Voice Chatbot with Whisper, llama.cpp, and LLM
JavaScript
JavaScript
Nov 22, 2024 · Fundamentals

Why JavaScript Might Split into Core JS0 and JSSugar: A New Proposal

At a recent Emca TC39 meeting, a Google engineer proposed dividing JavaScript into a minimal core language (JS0) and an advanced variant (JSSugar), arguing that new language features often harm security, performance, and stability, and suggesting that higher‑level capabilities be handled by external tools like TypeScript or Babel.

BabelJS0JSSugar
0 likes · 2 min read
Why JavaScript Might Split into Core JS0 and JSSugar: A New Proposal
JavaScript
JavaScript
Nov 21, 2024 · Frontend Development

Why Promise.try Simplifies Async Error Handling in JavaScript

This article explains how Promise.try provides a cleaner, more consistent way to handle both synchronous and asynchronous errors in JavaScript, eliminating the need for repetitive try‑catch blocks and improving code readability.

FrontendJavaScriptPromise
0 likes · 4 min read
Why Promise.try Simplifies Async Error Handling in JavaScript
Sohu Tech Products
Sohu Tech Products
Nov 20, 2024 · Frontend Development

Comparison of Vue 2 and Vue 3 Reactivity: Object.defineProperty vs Proxy

Vue 2 implements reactivity by adding individual getters and setters with Object.defineProperty, which works for existing properties but struggles with many fields and dynamic changes, whereas Vue 3 uses a Proxy to intercept all operations on an object, delivering higher performance, automatic handling of added or removed properties, and greater flexibility for complex data structures.

JavaScriptObject.definePropertyReactivity
0 likes · 14 min read
Comparison of Vue 2 and Vue 3 Reactivity: Object.defineProperty vs Proxy
Sohu Tech Products
Sohu Tech Products
Nov 20, 2024 · Frontend Development

JavaScript Pipeline Operator: Concepts, Drawbacks of Traditional Approaches, and Practical Usage

The JavaScript pipeline operator replaces cumbersome temporary variables, nested calls, and limited method chaining by letting developers chain regular, async, or generator functions directly, improving readability and maintainability, while Babel’s proposal‑hack plugin can be installed and configured now to start using it.

BabelJavaScriptcode readability
0 likes · 3 min read
JavaScript Pipeline Operator: Concepts, Drawbacks of Traditional Approaches, and Practical Usage
21CTO
21CTO
Nov 20, 2024 · Frontend Development

Top 10 Modern JavaScript Patterns Shaping Development in 2025

This article explores ten cutting‑edge JavaScript patterns—from native pattern matching and immutable data to module federation and type‑first development—explaining how each enhances code readability, maintainability, and scalability as the ecosystem evolves toward 2025.

2025Best PracticesDesign Patterns
0 likes · 6 min read
Top 10 Modern JavaScript Patterns Shaping Development in 2025
IT Services Circle
IT Services Circle
Nov 19, 2024 · Backend Development

New Features in Recent Node.js Releases (v20–v23)

The article reviews the rapid evolution of Node.js, detailing new security, testing, module, environment, and runtime capabilities introduced from version 20 through 23, while also noting the emergence of competing runtimes Deno and Bun and their impact on the JavaScript ecosystem.

BunDenoJavaScript
0 likes · 9 min read
New Features in Recent Node.js Releases (v20–v23)
JavaScript
JavaScript
Nov 19, 2024 · Frontend Development

11 Must‑Use Open‑Source Tools for Freelance Developers (Front‑to‑Back)

Discover the 11 most popular open‑source projects that freelance developers rely on—from fast front‑end build tools like Vite and Tailwind CSS to back‑end frameworks such as Express, ORM Sequelize, real‑time Socket.IO, testing with Jest, code quality with ESLint and Prettier, and containerization with Docker—each with concise usage examples.

BackendDockerFrontend
0 likes · 11 min read
11 Must‑Use Open‑Source Tools for Freelance Developers (Front‑to‑Back)
Full-Stack Cultivation Path
Full-Stack Cultivation Path
Nov 18, 2024 · Backend Development

Run JavaScript Inside Nginx with njs: A Hands‑On Guide

This article introduces njs, the JavaScript engine for Nginx, explains its basic "Hello world" example and walks through advanced features such as filesystem APIs, asynchronous I/O, shared memory, response handling, logging, and the global namespace, all with concrete code snippets.

JavaScriptNginxasynchronous processing
0 likes · 8 min read
Run JavaScript Inside Nginx with njs: A Hands‑On Guide
JD Tech Talk
JD Tech Talk
Nov 18, 2024 · Frontend Development

Step‑by‑Step Guide to Building a Chrome Extension with Manifest, UI, and Advanced Features

This article explains what browser extensions are, outlines the Chrome extension file structure, walks through creating the manifest, popup UI, content and background scripts, demonstrates messaging APIs, and shows how to add features such as ad removal, context‑menu shortcuts, request blocking, custom new‑tab pages, and text‑highlighting.

Chrome ExtensionContent ScriptJavaScript
0 likes · 8 min read
Step‑by‑Step Guide to Building a Chrome Extension with Manifest, UI, and Advanced Features
JD Cloud Developers
JD Cloud Developers
Nov 18, 2024 · Frontend Development

Build Your Own Chrome Extension: Step‑by‑Step Guide with Code Samples

This tutorial walks you through the fundamentals of Chrome extension development, covering the extension architecture, required files, manifest configuration, UI creation, background and content scripts, messaging APIs, and advanced features such as ad removal, context‑menu shortcuts, request blocking, custom new‑tab pages, and text highlighting.

JavaScriptWeb APIsbrowser automation
0 likes · 9 min read
Build Your Own Chrome Extension: Step‑by‑Step Guide with Code Samples
Alibaba Cloud Developer
Alibaba Cloud Developer
Nov 15, 2024 · Frontend Development

How to Build Real‑Time LLM Streaming in the Browser with Fetch

This article explains the mechanism of HTTP API streaming for large language models and shows step‑by‑step how front‑end developers can use the Fetch API, readable streams, and incremental UI updates to deliver real‑time, progressive results while handling errors and connection interruptions.

Front-endHTTP streamingJavaScript
0 likes · 9 min read
How to Build Real‑Time LLM Streaming in the Browser with Fetch
Full-Stack Cultivation Path
Full-Stack Cultivation Path
Nov 13, 2024 · Fundamentals

Master the New &&= and ??= Operators in JavaScript

The article explains ECMAScript 2021's logical assignment operators &&= and ??=, detailing their semantics, showing traditional equivalents, listing truthy/falsy values, and providing practical code examples and use‑cases for concise conditional assignments.

JavaScriptes2021logical-assignment
0 likes · 6 min read
Master the New &&= and ??= Operators in JavaScript
JD Tech
JD Tech
Nov 13, 2024 · Frontend Development

Dynamic Cross‑Platform Rendering Architecture and Implementation on HarmonyOS

This article explains the end‑to‑end architecture, principles, and code implementation of the dynamic cross‑platform framework (Roma/Dynamic) on HarmonyOS, covering template loading, JS‑C++‑ArkTS instance creation, V‑Dom and Component tree construction, rendering pipeline, view updates, and performance optimizations.

C++HarmonyOSJavaScript
0 likes · 30 min read
Dynamic Cross‑Platform Rendering Architecture and Implementation on HarmonyOS