# JavaScript

JavaScript is a lightweight interpreted or just-in-time compiled programming language with first-class functions.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Anthropic Adds Code Mode to Claude Code: Claude Now Chains Tool Calls in JavaScript

DevFeed: [Anthropic Adds Code Mode to Claude Code: Claude Now Chains Tool Calls in JavaScript](<https://devfeed.tech/articles/anthropic-adds-code-mode-to-claude-code-claude-now-chains-tool-calls-in-javascript-140323.md>)

Original publisher: [Read original article](<https://www.marktechpost.com/2026/11/17/anthropic-claude-code-code-mode-javascript-tool-calls/>)

Author: Michal Sutter

Published: 2026-11-18T06:53:28Z

Content type: article

Language: en

Sources: [MarkTechPost](<https://devfeed.tech/sources/marktechpost.md>)

Topics: [Claude Code](<https://devfeed.tech/topics/claude-code.md>), [Multi-step AI processes](<https://devfeed.tech/topics/multi-step-ai-processes.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [Claude](<https://devfeed.tech/topics/claude.md>), [anthropic](<https://devfeed.tech/topics/anthropic.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agent-sdk](<https://devfeed.tech/tags/agent-sdk.md>), [agent-teams](<https://devfeed.tech/tags/agent-teams.md>), [agentic-ai](<https://devfeed.tech/tags/agentic-ai.md>), [ai-infrastructure](<https://devfeed.tech/tags/ai-infrastructure.md>), [ai-shorts](<https://devfeed.tech/tags/ai-shorts.md>), [anthropic](<https://devfeed.tech/tags/anthropic.md>), [applications](<https://devfeed.tech/tags/applications.md>), [artificial-intelligence](<https://devfeed.tech/tags/artificial-intelligence.md>), [bash](<https://devfeed.tech/tags/bash.md>), [claude](<https://devfeed.tech/tags/claude.md>), [claude-code](<https://devfeed.tech/tags/claude-code.md>), [code](<https://devfeed.tech/tags/code.md>), [code-mode](<https://devfeed.tech/tags/code-mode.md>), [context-engineering](<https://devfeed.tech/tags/context-engineering.md>), [editors-pick](<https://devfeed.tech/tags/editors-pick.md>), [experimental](<https://devfeed.tech/tags/experimental.md>), [for-devs](<https://devfeed.tech/tags/for-devs.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [new-releases](<https://devfeed.tech/tags/new-releases.md>), [python](<https://devfeed.tech/tags/python.md>), [software-engineering](<https://devfeed.tech/tags/software-engineering.md>), [staff](<https://devfeed.tech/tags/staff.md>), [tech-news](<https://devfeed.tech/tags/tech-news.md>), [technology](<https://devfeed.tech/tags/technology.md>), [tool](<https://devfeed.tech/tags/tool.md>), [v2](<https://devfeed.tech/tags/v2.md>), [write](<https://devfeed.tech/tags/write.md>)

### AI overview

Claude Code's experimental Code Mode lets Claude write JavaScript to chain Bash, Read, and Edit calls in one program, including parallel commands and passing results between calls. Enable it with `CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1` on v2.1.323 or later; it requires an interactive terminal and an Anthropic subscription or Console account. When code runs in the background, it can continue for up to two hours while you chat; code Claude waits on stops after ten minutes. Permission review differs by mode: Auto mode reviews each code block, while other modes prompt for each tool call. The excerpt says Code Mode is unavailable through Bedrock, Google Cloud, Foundry, the Agent SDK, `-p`, VS Code, and Desktop, among other restrictions. Anthropic publishes no Code Mode benchmark or token-saving figure; the excerpt cites one third-party context measurement.

### Source excerpt

Anthropic has added Code Mode to Claude Code v2.1.323. The experimental feature lets Claude write JavaScript that chains Bash, Read and Edit calls in 1 step, and keep talking while long commands run. The post Anthropic Adds Code Mode to Claude Code: Claude Now Chains Tool Calls in JavaScript appeared first on MarkTechPost.

## CVE-2026-121707 - Effect: ReDoS in Schema.TemplateLiteral compiled regex

DevFeed: [CVE-2026-121707 - Effect: ReDoS in Schema.TemplateLiteral compiled regex](<https://devfeed.tech/articles/cve-2026-121707-effect-redos-in-schema-templateliteral-compiled-regex-138470.md>)

Original publisher: [Read original article](<https://cvefeed.io/vuln/detail/CVE-2026-121707>)

Author: CVEFEED.io; github.com

Published: 2026-11-17T20:17:36Z

Content type: news

Language: en

Sources: [Latest High/Critical Vulnerabilitiy Feed](<https://devfeed.tech/sources/latest-high-critical-vulnerabilitiy-feed.md>)

Topics: [Regular expression](<https://devfeed.tech/topics/regular-expression.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [applications](<https://devfeed.tech/tags/applications.md>), [block](<https://devfeed.tech/tags/block.md>), [build](<https://devfeed.tech/tags/build.md>), [compile](<https://devfeed.tech/tags/compile.md>), [cubic](<https://devfeed.tech/tags/cubic.md>), [cve](<https://devfeed.tech/tags/cve.md>), [cve-2026-121707](<https://devfeed.tech/tags/cve-2026-121707.md>), [cvss](<https://devfeed.tech/tags/cvss.md>), [decoding](<https://devfeed.tech/tags/decoding.md>), [effect](<https://devfeed.tech/tags/effect.md>), [effect-ts](<https://devfeed.tech/tags/effect-ts.md>), [effectful](<https://devfeed.tech/tags/effectful.md>), [event](<https://devfeed.tech/tags/event.md>), [event-loop](<https://devfeed.tech/tags/event-loop.md>), [expression](<https://devfeed.tech/tags/expression.md>), [fixed](<https://devfeed.tech/tags/fixed.md>), [framework](<https://devfeed.tech/tags/framework.md>), [issue](<https://devfeed.tech/tags/issue.md>), [published](<https://devfeed.tech/tags/published.md>), [regex](<https://devfeed.tech/tags/regex.md>), [schema](<https://devfeed.tech/tags/schema.md>)

### AI overview

Before Effect 3.22.1, a Schema.TemplateLiteral with at least two Schema.String spans compiled each span to the ambiguous lazy wildcard [\s\S]*?. Decoding a non-matching untrusted string can trigger cubic regex backtracking and block the JavaScript event loop. Affected entry points include Schema.decodeUnknown, Schema.decodeUnknownSync, and Schema.is, with downstream impact on HttpApi and @effect/rpc payload decoding. The issue is fixed in version 3.22.1.

### Source excerpt

CVE ID :CVE-2026-121707 Published : Nov. 17, 2026, 8:17 p.m. | 47 minutes ago Description :Effect is a TypeScript framework that consists of several packages that work together to help build TypeScript applications. Prior to 3.22.1, Schema.TemplateLiteral schemas containing at least two Schema.String spans compile each span to the ambiguous lazy wildcard [\s\S]*?. Decoding a non-matching untrusted string causes cubic regular expression backtracking, which can block the JavaScript event loop. The issue affects Schema.decodeUnknown, Schema.decodeUnknownSync, Schema.is, and consumers such as HttpApi and @effect/rpc payload decoding. This issue is fixed in version 3.22.1. Severity: 8.7 | HIGH Visit the link for more details, such as CVSS details, affected products, timeline, and more...

## Big O Cheat Sheet: Time Complexity Chart with JavaScript

DevFeed: [Big O Cheat Sheet: Time Complexity Chart with JavaScript](<https://devfeed.tech/articles/big-o-cheat-sheet-time-complexity-chart-with-javascript-136425.md>)

Original publisher: [Read original article](<https://markodenic.com/big-o-cheat-sheet/>)

Author: Marko

Published: 2026-11-16T09:00:00Z

Content type: article

Language: en

Sources: [Marko Denic Blog](<https://devfeed.tech/sources/marko-denic-blog.md>)

Topics: [Cheat sheet](<https://devfeed.tech/topics/cheatsheet.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>)

Tags: [algorithm](<https://devfeed.tech/tags/algorithm.md>), [algorithms](<https://devfeed.tech/tags/algorithms.md>), [array](<https://devfeed.tech/tags/array.md>), [big-o-notation](<https://devfeed.tech/tags/big-o-notation.md>), [binary-search](<https://devfeed.tech/tags/binary-search.md>), [cheat-sheet](<https://devfeed.tech/tags/cheat-sheet.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [map](<https://devfeed.tech/tags/map.md>), [set](<https://devfeed.tech/tags/set.md>), [sorting](<https://devfeed.tech/tags/sorting.md>), [time-complexity](<https://devfeed.tech/tags/time-complexity.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

### AI overview

Big O describes how algorithm work grows with input size, rather than elapsed time; it usually refers to worst-case cost, and drops constants and lower-order terms. The excerpt explains common rates from O(1) through O(n!), using examples such as binary search on sorted data, linear array scans, and quadratic pair checking. It contrasts a quadratic duplicate check with a Set-based approach that is O(n) on average. JavaScript operation costs are presented as typical for modern engines, not specified by ECMAScript; Map and Set are required to provide average sublinear access, while O(1) is typical in practice. Array push is amortized O(1), shift is O(n), and repeated includes lookups may be replaced by Set lookups. The text also notes that sort without a comparator orders values as strings, stable sorting is required since ES2019, and Big O alone may not predict speed on small inputs.

### Source excerpt

Big O notation cheat sheet: common time complexities with JavaScript examples, a growth chart, the cost of array, Map and Set operations, and sorting.

## var vs let vs const in JavaScript: What's the Difference?

DevFeed: [var vs let vs const in JavaScript: What's the Difference?](<https://devfeed.tech/articles/var-vs-let-vs-const-in-javascript-what-s-the-difference-134211.md>)

Original publisher: [Read original article](<https://markodenic.com/var-let-const/>)

Author: Marko

Published: 2026-11-14T17:00:00Z

Content type: article

Language: en

Sources: [Marko Denic Blog](<https://devfeed.tech/sources/marko-denic-blog.md>)

Topics: [JavaScript](<https://devfeed.tech/topics/javascript.md>)

Tags: [javascript](<https://devfeed.tech/tags/javascript.md>), [let](<https://devfeed.tech/tags/let.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>), [var](<https://devfeed.tech/tags/var.md>)

### AI overview

Use `const` by default, `let` when reassignment is needed, and avoid `var` in new code. `var` is function-scoped, permits redeclaration, and is initialized to `undefined` when hoisted; `let` and `const` are block-scoped, reject redeclaration, and throw a `ReferenceError` if accessed before their declaration. In loops, `let` creates a fresh binding per iteration, avoiding the shared-value behavior closures can exhibit with `var`. `const` prevents reassignment but does not make objects or arrays immutable; `Object.freeze()` is shallow. Use `let` for incremented `for` loop counters and `const` for `for...of` and `for...in`. The text says `var` remains supported, and the keyword choice has no noticeable speed difference.

### Source excerpt

var vs let vs const in JavaScript: scope, hoisting, the temporal dead zone, redeclaring and reassigning, and a simple rule for which one to use.

## How to Build a Browser-Based Image Storyboard to PDF Tool Using JavaScript

DevFeed: [How to Build a Browser-Based Image Storyboard to PDF Tool Using JavaScript](<https://devfeed.tech/articles/how-to-build-a-browser-based-image-storyboard-to-pdf-tool-using-javascript-133350.md>)

Original publisher: [Read original article](<https://www.freecodecamp.org/news/build-image-storyboard-to-pdf-tool-javascript/>)

Author: Bhavin Sheth

Published: 2026-11-13T10:44:43Z

Content type: tutorial

Language: en

Sources: [Free Code Camp](<https://devfeed.tech/sources/freecodecamp-programming-tutorials-python-javascript-git-more.md>)

Topics: [JavaScript](<https://devfeed.tech/topics/javascript.md>), [Front end](<https://devfeed.tech/topics/frontend.md>), [interactive web graphics](<https://devfeed.tech/topics/interactive-web-graphics.md>), [Image](<https://devfeed.tech/topics/image.md>), [Image processing](<https://devfeed.tech/topics/image-processing.md>), [browser](<https://devfeed.tech/topics/browser.md>), [web graphics](<https://devfeed.tech/topics/web-graphics.md>), [Tool](<https://devfeed.tech/topics/tool.md>)

Tags: [browser](<https://devfeed.tech/tags/browser.md>), [browser-apis](<https://devfeed.tech/tags/browser-apis.md>), [build](<https://devfeed.tech/tags/build.md>), [canvas](<https://devfeed.tech/tags/canvas.md>), [comic](<https://devfeed.tech/tags/comic.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [image](<https://devfeed.tech/tags/image.md>), [indexeddb](<https://devfeed.tech/tags/indexeddb.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [note](<https://devfeed.tech/tags/note.md>), [pdf](<https://devfeed.tech/tags/pdf.md>), [plan](<https://devfeed.tech/tags/plan.md>), [storyboard](<https://devfeed.tech/tags/storyboard.md>), [tool](<https://devfeed.tech/tags/tool.md>), [video](<https://devfeed.tech/tags/video.md>), [web-development](<https://devfeed.tech/tags/web-development.md>)

### AI overview

The tutorial builds a browser-only JavaScript tool that turns image files into numbered storyboard sheets and a downloadable PDF; images stay on the device. It covers four layouts, frame titles/descriptions/durations, numeric filename sorting, EXIF rotation via `createImageBitmap`, previewing, and draft recovery with IndexedDB. PDF-lib combines individual JPEG photos sized for the selected resolution with a transparent 300 dpi canvas layer for text and lines, keeping photos compact and text edges sharp. Because canvas-rendered text is an image, it is not searchable or selectable; embedding fonts with PDF-lib's `fontkit` is offered as an alternative. The tutorial also describes sequential image processing and thumbnail use to limit memory demands.

### Source excerpt

Before anyone films a video, shoots an ad or draws the final pages of a comic, someone usually sketches the plan as a storyboard: one picture per shot, in order, with a short note about what happens a

## Generate PDF Tables in JavaScript (PDF Grid) Using Syncfusion PDF Library

DevFeed: [Generate PDF Tables in JavaScript (PDF Grid) Using Syncfusion PDF Library](<https://devfeed.tech/articles/generate-pdf-tables-in-javascript-pdf-grid-using-syncfusion-pdf-library-127419.md>)

Original publisher: [Read original article](<https://www.syncfusion.com/blogs/post/generate-pdf-table-in-javascript>)

Author: Sumathi Uthayakumar

Published: 2026-11-10T15:30:00Z

Content type: tutorial

Language: en

Sources: [Syncfusion](<https://devfeed.tech/sources/syncfusion-blogs.md>)

Topics: [pdf](<https://devfeed.tech/topics/pdf.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [Learning](<https://devfeed.tech/topics/learning.md>)

Tags: [2](<https://devfeed.tech/tags/2.md>), [2026](<https://devfeed.tech/tags/2026.md>), [3](<https://devfeed.tech/tags/3.md>), [create-pdf-tables-dynamically](<https://devfeed.tech/tags/create-pdf-tables-dynamically.md>), [custom](<https://devfeed.tech/tags/custom.md>), [data](<https://devfeed.tech/tags/data.md>), [explore](<https://devfeed.tech/tags/explore.md>), [generate](<https://devfeed.tech/tags/generate.md>), [generate-pdf-reports-in-javascript](<https://devfeed.tech/tags/generate-pdf-reports-in-javascript.md>), [generate-pdf-tables](<https://devfeed.tech/tags/generate-pdf-tables.md>), [grid](<https://devfeed.tech/tags/grid.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [javascript-pdf-table-generation](<https://devfeed.tech/tags/javascript-pdf-table-generation.md>), [javascript-pdf-tables](<https://devfeed.tech/tags/javascript-pdf-tables.md>), [javascript-pdf-web-what-s-new](<https://devfeed.tech/tags/javascript-pdf-web-what-s-new.md>), [layouts](<https://devfeed.tech/tags/layouts.md>), [learn](<https://devfeed.tech/tags/learn.md>), [library](<https://devfeed.tech/tags/library.md>), [multi-page-pdf-tables](<https://devfeed.tech/tags/multi-page-pdf-tables.md>), [nested](<https://devfeed.tech/tags/nested.md>), [nested-pdf-tables](<https://devfeed.tech/tags/nested-pdf-tables.md>), [pdf](<https://devfeed.tech/tags/pdf.md>), [pdf-library](<https://devfeed.tech/tags/pdf-library.md>), [pdf-table-javascript](<https://devfeed.tech/tags/pdf-table-javascript.md>), [styling](<https://devfeed.tech/tags/styling.md>), [syncfusion](<https://devfeed.tech/tags/syncfusion.md>), [tables](<https://devfeed.tech/tags/tables.md>), [using](<https://devfeed.tech/tags/using.md>), [web](<https://devfeed.tech/tags/web.md>), [what-s-new](<https://devfeed.tech/tags/what-s-new.md>)

### AI overview

Syncfusion's JavaScript PDF Grid, available from Essential Studio 2026 Volume 3, creates PDF tables from bound data or manually defined rows and columns. Its API supports built-in and cell-level styling, hyperlinks, images, nested grids, and row or column spanning. For wide tables, horizontal overflow can scale all columns to one page (onePage), continue overflowing columns on subsequent pages with rows aligned (nextPage), or group overflow columns on one continuation page (lastPage). For tall tables, paginate layout flows rows across pages; repeatHeader can repeat headers, and fitElement can keep a row together. The article's examples load the library from a CDN, create a document and page, draw the grid, then save and destroy the document. File links require the target file to exist at the specified path when opened.

### Source excerpt

Learn to generate JavaScript PDF tables (Grid) using Syncfusion PDF Library. Explore data binding, custom styling, hyperlinks, nested tables, and multi-page layouts.

## How to Build an Accessible Gold Value Calculator in Vanilla JavaScript

DevFeed: [How to Build an Accessible Gold Value Calculator in Vanilla JavaScript](<https://devfeed.tech/articles/how-to-build-an-accessible-gold-value-calculator-in-vanilla-javascript-126631.md>)

Original publisher: [Read original article](<https://www.sitepoint.com/how-to-build-an-accessible-gold-value-calculator-in-vanilla-javascript/>)

Author: M Ahmad Shahmir

Published: 2026-11-10T03:47:01Z

Content type: tutorial

Language: en

Sources: [SitePoint](<https://devfeed.tech/sources/sitepoint.md>)

Topics: [JavaScript](<https://devfeed.tech/topics/javascript.md>), [Front end](<https://devfeed.tech/topics/frontend.md>), [Web Content Accessibility Guidelines](<https://devfeed.tech/topics/web-content-accessibility-guidelines.md>), [Web](<https://devfeed.tech/topics/web.md>), [aria](<https://devfeed.tech/topics/aria.md>), [Integration testing](<https://devfeed.tech/topics/integration-testing.md>)

Tags: [accessible](<https://devfeed.tech/tags/accessible.md>), [build](<https://devfeed.tech/tags/build.md>), [calculator](<https://devfeed.tech/tags/calculator.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [html-css](<https://devfeed.tech/tags/html-css.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [value](<https://devfeed.tech/tags/value.md>), [web](<https://devfeed.tech/tags/web.md>)

### AI overview

The tutorial builds a gold value calculator that converts grams, pennyweight, or troy ounces to grams and computes pure gold weight, melt value, and an optional buyer payout. It uses a pure JavaScript calculation and validation module, accessible labeled controls with a live output, and URL parameters to restore and share inputs. For a prefilling spot price, it puts the provider API key behind a Node.js/Express endpoint with a five-minute cache, three-second timeout, and stale-price fallback; users can edit the price. The text distinguishes melt value from an actual buyer offer and recommends labeling results as estimates. It also shows tests with Node's built-in runner. A server is optional if users enter the spot price themselves or a scheduled job supplies static JSON.

### Source excerpt

null Continue reading How to Build an Accessible Gold Value Calculator in Vanilla JavaScript on SitePoint.

## JavaScript for Everyone: New Game+

DevFeed: [JavaScript for Everyone: New Game+](<https://devfeed.tech/articles/javascript-for-everyone-new-game-124329.md>)

Original publisher: [Read original article](<https://piccalil.li/links/javascript-for-everyone-new-game-plus/?ref=main-rss-feed>)

Author: Mat Marquis

Published: 2026-11-09T11:55:00Z

Content type: release

Language: en

Sources: [Piccalilli - Everything](<https://devfeed.tech/sources/piccalilli-everything.md>)

Topics: [JavaScript](<https://devfeed.tech/topics/javascript.md>), [Learning](<https://devfeed.tech/topics/learning.md>), [Tutorial](<https://devfeed.tech/topics/tutorial.md>)

Tags: [better](<https://devfeed.tech/tags/better.md>), [building](<https://devfeed.tech/tags/building.md>), [canonical](<https://devfeed.tech/tags/canonical.md>), [community](<https://devfeed.tech/tags/community.md>), [complex](<https://devfeed.tech/tags/complex.md>), [course](<https://devfeed.tech/tags/course.md>), [educational](<https://devfeed.tech/tags/educational.md>), [effort](<https://devfeed.tech/tags/effort.md>), [feedback](<https://devfeed.tech/tags/feedback.md>), [industry](<https://devfeed.tech/tags/industry.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [knowledge](<https://devfeed.tech/tags/knowledge.md>), [language](<https://devfeed.tech/tags/language.md>), [learn](<https://devfeed.tech/tags/learn.md>), [learning](<https://devfeed.tech/tags/learning.md>), [live](<https://devfeed.tech/tags/live.md>), [material](<https://devfeed.tech/tags/material.md>), [modules](<https://devfeed.tech/tags/modules.md>), [practical](<https://devfeed.tech/tags/practical.md>), [work](<https://devfeed.tech/tags/work.md>)

### AI overview

JavaScript for Everyone's New Game+ update adds 3 modules, 20 new lessons with practical exercises, and 13 reworked lessons. The changes respond to community feedback that learners wanted more opportunities to build with JavaScript to reinforce what they learn. The source gives no module or lesson topics, so it does not support a more specific account of the course content.

### Source excerpt

We have great news. After months of effort, 3 new modules, 13 completely re-worked lessons and 20 new lessons (including practical exercises), JavaScript for Everyone's New Game+ update is now live! Check it out! We took feedback from the community about what they thought was missing from the course and overwhelmingly, people wanted practical exercises. It makes sense: JavaScript is a complex language to learn and there's not many better ways to cement new knowledge than by actually building with it. Mat took this feedback as a challenge, formulated a plan and got to work, disappearing into a text editor and reappearing with pretty much a whole course's worth of new and updated material. It's really inspiring to me, personally, because doing anything while it felt like our industry was being decimated felt impossible. Mat's resolve to keep doing what he does well: teach people, has been unmatched and the benefactors of that effort are everyone. JavaScript for Everyone was already the canonical, high quality educational resource for learning JavaScript, but now, it's at a whole new level. So what are you waiting for? Take it for a spin and truly understand how JavaScript works! Check it out!

## Automating Shadow DOM in Selenium WebDriver

DevFeed: [Automating Shadow DOM in Selenium WebDriver](<https://devfeed.tech/articles/automating-shadow-dom-in-selenium-webdriver-122666.md>)

Original publisher: [Read original article](<https://www.baeldung.com/selenium-webdriver-automate-shadow-dom>)

Author: baeldung

Published: 2026-11-08T13:20:05Z

Content type: tutorial

Language: en

Sources: [Baeldung](<https://devfeed.tech/sources/baeldung.md>)

Topics: [Selenium](<https://devfeed.tech/topics/selenium.md>), [Document Object Model (DOM)](<https://devfeed.tech/topics/dom.md>), [webDriver](<https://devfeed.tech/topics/webdriver.md>), [Browser Automation](<https://devfeed.tech/topics/browser-automation.md>), [Test automation](<https://devfeed.tech/topics/test-automation.md>), [ui-testing](<https://devfeed.tech/topics/ui-testing.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [selectors](<https://devfeed.tech/topics/selectors.md>), [Front end](<https://devfeed.tech/topics/frontend.md>), [geckodriver](<https://devfeed.tech/topics/geckodriver.md>)

Tags: [accessibility](<https://devfeed.tech/tags/accessibility.md>), [api](<https://devfeed.tech/tags/api.md>), [automation](<https://devfeed.tech/tags/automation.md>), [automation-tools](<https://devfeed.tech/tags/automation-tools.md>), [boundary](<https://devfeed.tech/tags/boundary.md>), [chrome](<https://devfeed.tech/tags/chrome.md>), [components](<https://devfeed.tech/tags/components.md>), [elements](<https://devfeed.tech/tags/elements.md>), [java-web](<https://devfeed.tech/tags/java-web.md>), [java-web-testing-javascript-selenium](<https://devfeed.tech/tags/java-web-testing-javascript-selenium.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [root](<https://devfeed.tech/tags/root.md>), [selenium](<https://devfeed.tech/tags/selenium.md>), [testing](<https://devfeed.tech/tags/testing.md>), [webdriver](<https://devfeed.tech/tags/webdriver.md>)

### AI overview

Selenium 4 accesses shadow DOM by locating a shadow host, calling getShadowRoot(), then querying within the returned SearchContext; ordinary driver.findElement() cannot cross the boundary, and XPath is unsupported for shadow roots and their children in the described ChromeDriver and GeckoDriver implementations. For older Selenium, JavaScriptExecutor can retrieve the root or target elements, including through nested roots, but longer scripts can be harder to diagnose, so the article favors reliability over request-count or speed gains. Behavior also varies by driver for closed roots: ChromeDriver allowed queries but reported elements as non-interactable, while GeckoDriver allowed access and interaction in the reported experiments. Keyboard navigation via Actions is offered as a potentially flaky workaround when direct closed-root access is unavailable. The example waits for page navigation but does not validate search results; Google may show a bot check.

### Source excerpt

Learn how to access shadow DOM elements with Selenium, understand shadow-root boundaries, and compare native WebDriver support with JavaScript-based approaches. The post Automating Shadow DOM in Selenium WebDriver first appeared on Baeldung.

## Make your stats count up with zero JavaScript

DevFeed: [Make your stats count up with zero JavaScript](<https://devfeed.tech/articles/make-your-stats-count-up-with-zero-javascript-122216.md>)

Original publisher: [Read original article](<https://markodenic.tech/make-your-stats-count-up-with-zero-javascript/>)

Author: Marko

Published: 2026-11-07T11:05:15Z

Content type: tutorial

Language: en

Sources: [Marko Denic Tech](<https://devfeed.tech/sources/marko-denic-tech.md>)

Topics: [Web Development](<https://devfeed.tech/topics/web-development.md>), [Front end](<https://devfeed.tech/topics/frontend.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>)

Tags: [accessible](<https://devfeed.tech/tags/accessible.md>), [agent-memory](<https://devfeed.tech/tags/agent-memory.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [alt-text](<https://devfeed.tech/tags/alt-text.md>), [animate](<https://devfeed.tech/tags/animate.md>), [animation](<https://devfeed.tech/tags/animation.md>), [blog-for-developers](<https://devfeed.tech/tags/blog-for-developers.md>), [browser](<https://devfeed.tech/tags/browser.md>), [browser-support](<https://devfeed.tech/tags/browser-support.md>), [build-faster](<https://devfeed.tech/tags/build-faster.md>), [code-productivity](<https://devfeed.tech/tags/code-productivity.md>), [code-smarter](<https://devfeed.tech/tags/code-smarter.md>), [content-monetization](<https://devfeed.tech/tags/content-monetization.md>), [css](<https://devfeed.tech/tags/css.md>), [css-animation](<https://devfeed.tech/tags/css-animation.md>), [css-performance](<https://devfeed.tech/tags/css-performance.md>), [custom](<https://devfeed.tech/tags/custom.md>), [developer-growth](<https://devfeed.tech/tags/developer-growth.md>), [developer-resources](<https://devfeed.tech/tags/developer-resources.md>), [email-newsletter-for-coders](<https://devfeed.tech/tags/email-newsletter-for-coders.md>), [front-end-development](<https://devfeed.tech/tags/front-end-development.md>), [github-profile-automation](<https://devfeed.tech/tags/github-profile-automation.md>), [html-tips](<https://devfeed.tech/tags/html-tips.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [javascript-tricks](<https://devfeed.tech/tags/javascript-tricks.md>), [learn-to-code](<https://devfeed.tech/tags/learn-to-code.md>), [library](<https://devfeed.tech/tags/library.md>), [numbers](<https://devfeed.tech/tags/numbers.md>), [property](<https://devfeed.tech/tags/property.md>), [responsive-design-tips](<https://devfeed.tech/tags/responsive-design-tips.md>), [scroll](<https://devfeed.tech/tags/scroll.md>), [static](<https://devfeed.tech/tags/static.md>), [stats](<https://devfeed.tech/tags/stats.md>), [ui](<https://devfeed.tech/tags/ui.md>), [web-dev-newsletter](<https://devfeed.tech/tags/web-dev-newsletter.md>), [web-development](<https://devfeed.tech/tags/web-development.md>), [web-development-tips](<https://devfeed.tech/tags/web-development-tips.md>), [weekly-dev-tips](<https://devfeed.tech/tags/weekly-dev-tips.md>), [workflow-optimization](<https://devfeed.tech/tags/workflow-optimization.md>), [zero](<https://devfeed.tech/tags/zero.md>)

### AI overview

CSS can animate whole-number stats from zero without a counter library or a JavaScript animation loop: register `--num` with `@property` using `syntax: '<integer>'`, animate it toward a per-element `--to` value, and display it through `counter()`. The example keeps the real number in the HTML for screen readers, search engines, and visitors without CSS; empty generated-content alt text prevents reading duplicate animated digits. A reduced-motion rule shortens the animation so the value still reaches its endpoint. For stats below the fold, the article pauses the CSS animation and uses an `IntersectionObserver` to start it when the container becomes visible. The approach prints integers without thousands separators; decimal values need a workaround or can remain static. The excerpt says `@property` works in Chrome, Edge, Safari, and Firefox, while older browsers show the final number without animation.

### Source excerpt

Static numbers are easy to scroll past. Register one custom property as an integer and CSS counts your stats up from zero, no library and no JavaScript loop.

## Announcing the OpenTelemetry JavaScript SDK 3.0

DevFeed: [Announcing the OpenTelemetry JavaScript SDK 3.0](<https://devfeed.tech/articles/announcing-the-opentelemetry-javascript-sdk-3-0-119945.md>)

Original publisher: [Read original article](<https://opentelemetry.io/blog/2026/otel-js-sdk-3-0/>)

Author: OpenTelemetry Authors; Docs CC BY

Published: 2026-11-05T15:54:08Z

Content type: release

Language: en

Sources: [OpenTelemetry](<https://devfeed.tech/sources/blog-on-opentelemetry.md>)

Topics: [OpenTelemetry](<https://devfeed.tech/topics/opentelemetry.md>), [SDK](<https://devfeed.tech/topics/sdk.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [npm packages](<https://devfeed.tech/topics/npm-packages.md>), [CommonJS](<https://devfeed.tech/topics/commonjs.md>), [export](<https://devfeed.tech/topics/export.md>)

Tags: [3](<https://devfeed.tech/tags/3.md>), [api](<https://devfeed.tech/tags/api.md>), [can](<https://devfeed.tech/tags/can.md>), [changes](<https://devfeed.tech/tags/changes.md>), [details](<https://devfeed.tech/tags/details.md>), [except](<https://devfeed.tech/tags/except.md>), [experimental](<https://devfeed.tech/tags/experimental.md>), [found](<https://devfeed.tech/tags/found.md>), [full](<https://devfeed.tech/tags/full.md>), [guide](<https://devfeed.tech/tags/guide.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [javascript-packages](<https://devfeed.tech/tags/javascript-packages.md>), [js](<https://devfeed.tech/tags/js.md>), [js-sdk](<https://devfeed.tech/tags/js-sdk.md>), [list](<https://devfeed.tech/tags/list.md>), [major](<https://devfeed.tech/tags/major.md>), [migration](<https://devfeed.tech/tags/migration.md>), [migration-guide](<https://devfeed.tech/tags/migration-guide.md>), [opentelemetry](<https://devfeed.tech/tags/opentelemetry.md>), [sdk](<https://devfeed.tech/tags/sdk.md>)

### AI overview

OpenTelemetry JavaScript SDK 3.0 raises the minimum supported Node.js version to 22.15.0, dropping Node.js 18 and 20, and provides proper ESM and CommonJS exports. Stable SDK packages are version 3.0.0 or later; experimental packages are 0.300.0 or later. The release adds complex attributes in some API areas, stabilizes Logs and folds `@opentelemetry/api-logs` into `@opentelemetry/api`, consolidates tracing packages into `@opentelemetry/sdk-trace`, and removes deprecated packages. Several public types and class names changed, though the API package has no breaking changes; users of `@opentelemetry/auto-instrumentations-node` following the zero-code instructions need no changes. Stable SDK 2.x packages are supported for one year from the 3.0.0 release. Consult the migration guide for the complete package list and migration details.

### Source excerpt

OpenTelemetry JavaScript has released SDK 3.0 (stable v3.0.0 packages and experimental v0.300.0 packages) and API 1.10.0. Migration guide For a detailed description of breaking changes, see the OpenTelemetry JS SDK 3.x migration guide. What is JS SDK 3.x? JS SDK 3.x encompasses new releases of the @opentelemetry/* JavaScript packages published from the opentelemetry-js repository, except the API and semantic-conventions packages. The package versions for this new major will be >=3.0.0 for the stable and >=0.300.0 for the unstable packages. Details on the full list of packages can be found in the migration guide.

## How to Master JavaScript Destructuring and Spread Syntax

DevFeed: [How to Master JavaScript Destructuring and Spread Syntax](<https://devfeed.tech/articles/how-to-master-javascript-destructuring-and-spread-syntax-119683.md>)

Original publisher: [Read original article](<https://jsdev.space/howto/javascript-destructuring/>)

Author: anton liberant

Published: 2026-11-05T00:00:00Z

Content type: tutorial

Language: en

Sources: [JavaScript Development](<https://devfeed.tech/sources/javascript-development.md>)

Topics: [destructuring](<https://devfeed.tech/topics/destructuring.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [Learning](<https://devfeed.tech/topics/learning.md>)

Tags: [destructuring](<https://devfeed.tech/tags/destructuring.md>), [examples](<https://devfeed.tech/tags/examples.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [pitfalls](<https://devfeed.tech/tags/pitfalls.md>), [syntax](<https://devfeed.tech/tags/syntax.md>)

### AI overview

JavaScript destructuring extracts values by array position or object property name; rest collects remaining values, and spread expands values into arrays, calls, or objects. The article shows how these features simplify named function options, defaults, and immutable updates. Key limits: destructuring defaults apply only to `undefined`, nested destructuring can fail when an intermediate value is missing, and spread makes shallow copies, so nested objects remain shared unless separately copied. `structuredClone()` recursively copies supported data, but cannot clone functions and has other unsupported values. For security-sensitive output, explicitly selecting allowed properties is safer than removing known secrets with object rest.

### Source excerpt

Learn JavaScript destructuring, rest parameters, and spread syntax with practical examples, safer defaults, shallow copying, and common pitfalls.

## Render just removed its AI sandbox time limit -- and Vercel still has a 24-hour cap

DevFeed: [Render just removed its AI sandbox time limit -- and Vercel still has a 24-hour cap](<https://devfeed.tech/articles/render-just-removed-its-ai-sandbox-time-limit-and-vercel-still-has-a-24-hour-cap-117679.md>)

Original publisher: [Read original article](<https://thenewstack.io/render-vercel-ai-sandboxes/>)

Author: Amanda Caswell

Published: 2026-11-04T18:04:17Z

Content type: news

Language: en

Sources: [The New Stack](<https://devfeed.tech/sources/the-new-stack.md>)

Topics: [AI Sandbox](<https://devfeed.tech/topics/ai-sandbox.md>), [AI Infrastructure](<https://devfeed.tech/topics/ai-infrastructure.md>), [Vercel](<https://devfeed.tech/topics/vercel.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agent-workflows](<https://devfeed.tech/tags/agent-workflows.md>), [agentic](<https://devfeed.tech/tags/agentic.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [ai-infrastructure](<https://devfeed.tech/tags/ai-infrastructure.md>), [ai-sandbox](<https://devfeed.tech/tags/ai-sandbox.md>), [ai-sandboxes](<https://devfeed.tech/tags/ai-sandboxes.md>), [api](<https://devfeed.tech/tags/api.md>), [applications](<https://devfeed.tech/tags/applications.md>), [aws](<https://devfeed.tech/tags/aws.md>), [backend](<https://devfeed.tech/tags/backend.md>), [background](<https://devfeed.tech/tags/background.md>), [background-work](<https://devfeed.tech/tags/background-work.md>), [cloud-services](<https://devfeed.tech/tags/cloud-services.md>), [long-running](<https://devfeed.tech/tags/long-running.md>), [render](<https://devfeed.tech/tags/render.md>), [run](<https://devfeed.tech/tags/run.md>), [sandbox](<https://devfeed.tech/tags/sandbox.md>), [sandboxes](<https://devfeed.tech/tags/sandboxes.md>), [vercel](<https://devfeed.tech/tags/vercel.md>)

### AI overview

Render removed its 30-day continuous runtime limit on paid workspace plans, offering AI sandboxes that can suspend when idle and resume with files, memory, and running processes intact. Vercel caps individual sandbox sessions at 24 hours; the article says persistent Vercel sandboxes can restart, but their processes start over. Render's Durable Workflows, written in Python or TypeScript, save each completed step and can resume after a crash on another machine; idempotency keys may be needed if a payment succeeds before its result is saved. Shared Filesystems let sandboxes and workflow tasks access persistent files, but concurrent writes to the same file remain unresolved. Credential brokering attaches secrets to outbound requests so they never enter the sandbox; it is rolling out first to selected customers, while beta developers get controls to block all outbound traffic or allow listed domains. Private sandbox networking is still in development.

### Source excerpt

Render is taking on Vercel with AI sandboxes that can run indefinitely, along with new tools for managing long-running agent The post Render just removed its AI sandbox time limit -- and Vercel still has a 24-hour cap appeared first on The New Stack.

## How to Validate PDF Digital Signatures in JavaScript with Timestamps and Long-Term Validation (LTV)

DevFeed: [How to Validate PDF Digital Signatures in JavaScript with Timestamps and Long-Term Validation (LTV)](<https://devfeed.tech/articles/how-to-validate-pdf-digital-signatures-in-javascript-with-timestamps-and-long-term-validation-ltv-117749.md>)

Original publisher: [Read original article](<https://www.syncfusion.com/blogs/post/pdf-signature-validation-javascript>)

Author: Sumathi Uthayakumar

Published: 2026-11-04T15:30:00Z

Content type: tutorial

Language: en

Sources: [Syncfusion](<https://devfeed.tech/sources/syncfusion-blogs.md>)

Topics: [pdf](<https://devfeed.tech/topics/pdf.md>), [certificates](<https://devfeed.tech/topics/certificates.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>)

Tags: [digital-signature](<https://devfeed.tech/tags/digital-signature.md>), [digital-signature-pdf-javascript](<https://devfeed.tech/tags/digital-signature-pdf-javascript.md>), [digital-signatures](<https://devfeed.tech/tags/digital-signatures.md>), [document-processing](<https://devfeed.tech/tags/document-processing.md>), [document-processing-javascript-pdf-web-what-s-new](<https://devfeed.tech/tags/document-processing-javascript-pdf-web-what-s-new.md>), [file-formats](<https://devfeed.tech/tags/file-formats.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [javascript-pdf-library](<https://devfeed.tech/tags/javascript-pdf-library.md>), [javascript-pdf-signing](<https://devfeed.tech/tags/javascript-pdf-signing.md>), [long-term-validation-pdf](<https://devfeed.tech/tags/long-term-validation-pdf.md>), [net-pdf-library](<https://devfeed.tech/tags/net-pdf-library.md>), [pdf](<https://devfeed.tech/tags/pdf.md>), [pdf-digital-signature-javascript](<https://devfeed.tech/tags/pdf-digital-signature-javascript.md>), [pdf-signature-validation](<https://devfeed.tech/tags/pdf-signature-validation.md>), [pdf-signature-validation-javascript](<https://devfeed.tech/tags/pdf-signature-validation-javascript.md>), [pdf-timestamp-signature](<https://devfeed.tech/tags/pdf-timestamp-signature.md>), [security](<https://devfeed.tech/tags/security.md>), [sign-pdf-in-javascript](<https://devfeed.tech/tags/sign-pdf-in-javascript.md>), [syncfusion](<https://devfeed.tech/tags/syncfusion.md>), [timestamps](<https://devfeed.tech/tags/timestamps.md>), [validate-pdf-signatures](<https://devfeed.tech/tags/validate-pdf-signatures.md>), [validation](<https://devfeed.tech/tags/validation.md>), [web](<https://devfeed.tech/tags/web.md>), [what-s-new](<https://devfeed.tech/tags/what-s-new.md>)

### AI overview

The Syncfusion JavaScript PDF Library's 2026 Volume 3 release adds signature validation and Long-Term Validation (LTV). The guide describes signing PDFs with a PFX/P12 certificate, adding a trusted timestamp through a TSA callback and asynchronous save, then reloading the signed PDF to embed OCSP or CRL evidence with enableLTV(). Developers can validate one signature or all signature fields, reviewing integrity, certificate-chain trust, timestamps, and revocation results; a single overall Boolean may not capture each signature's status. Long-term verification is not guaranteed: it depends on signature integrity, available certificate and revocation evidence, chain building, and validator trust policies. The text cautions against exposing private keys or certificate passwords in browser code and says applications must implement TSA and revocation network handling.

### Source excerpt

Learn how to sign PDF documents in JavaScript, add trusted timestamps, enable Long-Term Validation (LTV), and validate digital signatures using the Syncfusion JavaScript PDF Library.

## Pokémon bakeoff reveals best JavaScript frameworks for AI

DevFeed: [Pokémon bakeoff reveals best JavaScript frameworks for AI](<https://devfeed.tech/articles/pokemon-bakeoff-reveals-best-javascript-frameworks-for-ai-118911.md>)

Original publisher: [Read original article](<https://www.devclass.com/ai-ml/2026/11/04/pokemon-bakeoff-reveals-best-javascript-frameworks-for-ai/5307282>)

Author: Joab Jackson

Published: 2026-11-04T14:53:00Z

Content type: news

Language: en

Sources: [DevClass.com](<https://devfeed.tech/sources/devclass-com.md>)

Topics: [Web Development](<https://devfeed.tech/topics/web-development.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [Astro](<https://devfeed.tech/topics/astro.md>), [Hono](<https://devfeed.tech/topics/honojs.md>), [Vue.js](<https://devfeed.tech/topics/vue.md>), [React](<https://devfeed.tech/topics/react.md>), [Claude](<https://devfeed.tech/topics/claude.md>), [Single-page application (SPA)](<https://devfeed.tech/topics/spa.md>)

Tags: [accessibility](<https://devfeed.tech/tags/accessibility.md>), [actor](<https://devfeed.tech/tags/actor.md>), [agent](<https://devfeed.tech/tags/agent.md>), [agent-skill](<https://devfeed.tech/tags/agent-skill.md>), [agentic](<https://devfeed.tech/tags/agentic.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-and-ml](<https://devfeed.tech/tags/ai-and-ml.md>), [ai-ml](<https://devfeed.tech/tags/ai-ml.md>), [best](<https://devfeed.tech/tags/best.md>), [claude](<https://devfeed.tech/tags/claude.md>), [first](<https://devfeed.tech/tags/first.md>), [frameworks](<https://devfeed.tech/tags/frameworks.md>), [html](<https://devfeed.tech/tags/html.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [javascript-frameworks](<https://devfeed.tech/tags/javascript-frameworks.md>), [lean](<https://devfeed.tech/tags/lean.md>), [microsoft](<https://devfeed.tech/tags/microsoft.md>), [over](<https://devfeed.tech/tags/over.md>), [react](<https://devfeed.tech/tags/react.md>), [spas](<https://devfeed.tech/tags/spas.md>), [tools](<https://devfeed.tech/tags/tools.md>)

### AI overview

In Nolan Lawson's five-run Claude Code benchmark, server-centric, convention-heavy frameworks generally produced the Pokémon app more efficiently than client-heavy stacks. Hono with htmx had the lowest median build cost ($2.67) and fewest lines (1,370); Astro was close in cost ($2.76) and fastest to build and test (8.2 minutes). Nuxt was the least costly SPA-like option ($2.82), with built-in routing and data handling reducing agent-written boilerplate. The top three were within the margin of error. Angular cost the most ($4.97), took 17.2 minutes, and failed to produce a working app in two of five runs; SvelteKit's agent repeatedly consulted updated documentation. All apps passed Lighthouse accessibility and performance tests, though Astro loaded fastest and Next.js and TanStack Start had the slowest LCP. The results come from one simple app and do not account for developers' familiarity or maintenance needs, which commenters said also matter.

### Source excerpt

Sorry React die-hards, Claude prefers lean HTML-first tools over bloated SPAs

## A One-Line JavaScript Bug Broke My GA4 Tracking for Five Months

DevFeed: [A One-Line JavaScript Bug Broke My GA4 Tracking for Five Months](<https://devfeed.tech/articles/a-one-line-javascript-bug-broke-my-ga4-tracking-for-five-months-116231.md>)

Original publisher: [Read original article](<https://hackernoon.com/a-one-line-javascript-bug-broke-my-ga4-tracking-for-five-months?source=rss>)

Author: Muhaymin Bin Mehmood

Published: 2026-11-04T09:15:03Z

Content type: tutorial

Language: en

Sources: [HackerNoon](<https://devfeed.tech/sources/hackernoon.md>)

Topics: [JavaScript](<https://devfeed.tech/topics/javascript.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [ESLint](<https://devfeed.tech/topics/eslint.md>)

Tags: [2](<https://devfeed.tech/tags/2.md>), [3](<https://devfeed.tech/tags/3.md>), [about](<https://devfeed.tech/tags/about.md>), [added](<https://devfeed.tech/tags/added.md>), [admin](<https://devfeed.tech/tags/admin.md>), [bug](<https://devfeed.tech/tags/bug.md>), [conversion](<https://devfeed.tech/tags/conversion.md>), [conversion-tracking](<https://devfeed.tech/tags/conversion-tracking.md>), [data](<https://devfeed.tech/tags/data.md>), [events](<https://devfeed.tech/tags/events.md>), [funnel-analysis](<https://devfeed.tech/tags/funnel-analysis.md>), [ga4](<https://devfeed.tech/tags/ga4.md>), [ga4-debugging](<https://devfeed.tech/tags/ga4-debugging.md>), [ga4-event-tracking](<https://devfeed.tech/tags/ga4-event-tracking.md>), [google-analytics](<https://devfeed.tech/tags/google-analytics.md>), [google-tag-manager](<https://devfeed.tech/tags/google-tag-manager.md>), [gtag-js](<https://devfeed.tech/tags/gtag-js.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [learn](<https://devfeed.tech/tags/learn.md>), [learn-how-to](<https://devfeed.tech/tags/learn-how-to.md>), [my](<https://devfeed.tech/tags/my.md>), [one](<https://devfeed.tech/tags/one.md>), [tracking](<https://devfeed.tech/tags/tracking.md>), [verify](<https://devfeed.tech/tags/verify.md>)

### AI overview

A GA4 wrapper silently dropped custom events because it pushed a rest-parameter array into `dataLayer`; the author reports that `gtag.js` acted on an `Arguments` object with the same values but not the array. The fix is to push `arguments` (or call `window.gtag` directly), with a test guarding the object type. To verify tracking, trigger a custom event and check its type in `dataLayer`, a `g/collect` request, and GA4 Realtime or DebugView; standard reports can lag. A separate reporting issue arose because completed events were not marked as key events in GA4 Admin. Marking them is not retroactive, so the change date matters. After both issues were corrected, the excerpt's small-site data showed most visitors left before adding a file, while nearly all who added one finished.

### Source excerpt

one-line JavaScript bug silently broke GA4 conversion tracking for five months. Learn how to detect missing events, fix gtag.js, and verify your data.

## Going deeper with htmx 4 -- combining htmx and JavaScript

DevFeed: [Going deeper with htmx 4 -- combining htmx and JavaScript](<https://devfeed.tech/articles/going-deeper-with-htmx-4-combining-htmx-and-javascript-117128.md>)

Original publisher: [Read original article](<https://www.infoworld.com/article/4237122/going-deeper-with-htmx-4-combining-htmx-and-javascript.html>)

Author: Serdar Yegulalp

Published: 2026-11-04T09:00:00Z

Content type: article

Language: en

Sources: [InfoWorld](<https://devfeed.tech/sources/infoworld.md>)

Topics: [htmx](<https://devfeed.tech/topics/htmx.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [Front end](<https://devfeed.tech/topics/frontend.md>), [Stimulus](<https://devfeed.tech/topics/stimulus.md>), [Python](<https://devfeed.tech/topics/python.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [development-approaches](<https://devfeed.tech/tags/development-approaches.md>), [development-approaches-javascript-programming-languages-software-development-web-development](<https://devfeed.tech/tags/development-approaches-javascript-programming-languages-software-development-web-development.md>), [events](<https://devfeed.tech/tags/events.md>), [htmx](<https://devfeed.tech/tags/htmx.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [language-en](<https://devfeed.tech/tags/language-en.md>), [programming-languages](<https://devfeed.tech/tags/programming-languages.md>), [software-development](<https://devfeed.tech/tags/software-development.md>), [storytype-feature](<https://devfeed.tech/tags/storytype-feature.md>), [web-development](<https://devfeed.tech/tags/web-development.md>)

### AI overview

htmx supports both incremental adoption alongside existing JavaScript and migration toward htmx. Inline `hx-on` attributes keep custom behavior close to elements and consistent with other `hx-` attributes; the `htmx` API offers more flexible hooks, including `on()`, `onLoad()` for dynamically added content, and `ajax()` for requests processed and inserted by htmx. In htmx 4, `q()` provides selector-based DOM operations such as toggling classes, triggering events, and inserting HTML, usable from attributes or custom JavaScript. The excerpt cautions that combining reactive front-end frameworks can cause side effects, while noting the `hx-alpine-compat` extension for keeping Alpine.js behaviors active in htmx-managed components. It also names third-party htmx support for Django and FastAPI, Jinja2 Fragments for partial rendering, and native support in Litestar.

### Source excerpt

htmx lets you add rich functionality to web pages without writing JavaScript. But it also lets you integrate JavaScript if you need it, either by adding functions in-line to elements or by writing more complex hooks for events. These behaviors let you take web pages that already use JavaScript, and either migrate to htmx entirely or add htmx only where it's needed -- for instance, in new parts of an application. Generally, htmx works best with green-field applications, since you can start with a non-interactive page and just layer in the behaviors you want as they're needed. But htmx can also work as an add-on for a page that already uses JavaScript, or as a migration target away from existing JavaScript. Using htmx with JavaScript When you want to integrate htmx with hand-rolled JavaScript, htmx offers you several ways to do it. Some are extremely basic, but tightly coupled to the objects they work with. Others are more advanced and flexible, but require more work to use. Using hx-on attributes A basic way to add JavaScript behaviors to objects is through a very htmx-like mechanism, the hx-on attributes. Add one of these to a given object and you can provide code or function calls inline. For example: <button hx-on:click="console.log(`${this} clicked`);"> Click here to log to the console The inline code can be a whole code block, as shown here, or a function call to your own code. One advantage of using hx-on is consistency with other hx- attributes. If all your existing interaction is powered by htmx, adding more hx- attributes for custom functionality keeps things uniform. On the other hand, if you want your custom functionality to be mechanically distinct from htmx, consider the approach discussed next: registering callbacks. Using the htmx API The more complex way to "wire up" JavaScript functionality for htmx-enabled pages is to use the htmx object and its methods. With htmx you can register callback functions for any behavior. The htmx object provides a set of

## JavaScript Modulo (%): Remainder Operator Explained

DevFeed: [JavaScript Modulo (%): Remainder Operator Explained](<https://devfeed.tech/articles/javascript-modulo-remainder-operator-explained-116067.md>)

Original publisher: [Read original article](<https://markodenic.com/javascript-modulo/>)

Author: Marko

Published: 2026-11-03T09:00:00Z

Content type: article

Language: en

Sources: [Marko Denic Blog](<https://devfeed.tech/sources/marko-denic-blog.md>)

Topics: [JavaScript](<https://devfeed.tech/topics/javascript.md>)

Tags: [array](<https://devfeed.tech/tags/array.md>), [bigint](<https://devfeed.tech/tags/bigint.md>), [calc](<https://devfeed.tech/tags/calc.md>), [clamp](<https://devfeed.tech/tags/clamp.md>), [css](<https://devfeed.tech/tags/css.md>), [dividend](<https://devfeed.tech/tags/dividend.md>), [floating-point](<https://devfeed.tech/tags/floating-point.md>), [foreach](<https://devfeed.tech/tags/foreach.md>), [function](<https://devfeed.tech/tags/function.md>), [index](<https://devfeed.tech/tags/index.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [min](<https://devfeed.tech/tags/min.md>), [minutes](<https://devfeed.tech/tags/minutes.md>), [numbers](<https://devfeed.tech/tags/numbers.md>), [operator](<https://devfeed.tech/tags/operator.md>), [python](<https://devfeed.tech/tags/python.md>), [sign](<https://devfeed.tech/tags/sign.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

### AI overview

JavaScript's `%` operator returns a remainder, whose sign follows the left operand; it is therefore not true modulo for negative values. The excerpt shows uses for divisibility and even/odd checks, periodic actions, wrapping array indexes, and splitting seconds into minutes and seconds. For a nonnegative modulo result, it gives `((n % m) + m) % m`. It also notes that decimal remainders can be imprecise because of floating-point representation, BigInt operands must both be BigInts, and `% 0` yields `NaN`.

### Source excerpt

How the % operator works in JavaScript: remainders, even and odd checks, why negative numbers give negative results, a true modulo function, and practical uses like wrapping indexes and time formatting.

## How to Compare PDF Documents in JavaScript Using Syncfusion PDF Viewer

DevFeed: [How to Compare PDF Documents in JavaScript Using Syncfusion PDF Viewer](<https://devfeed.tech/articles/how-to-compare-pdf-documents-in-javascript-using-syncfusion-pdf-viewer-109219.md>)

Original publisher: [Read original article](<https://www.syncfusion.com/blogs/post/how-to-compare-pdf-documents-in-javascript-using-syncfusion-pdf-viewer>)

Author: Deepa Thiruppathy

Published: 2026-10-30T19:49:57.457718Z

Content type: tutorial

Language: en

Sources: [Syncfusion](<https://devfeed.tech/sources/syncfusion-blogs.md>)

Topics: [pdf](<https://devfeed.tech/topics/pdf.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [Front end](<https://devfeed.tech/topics/frontend.md>), [UI/UX Design](<https://devfeed.tech/topics/ui-ux-design.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [built-in](<https://devfeed.tech/tags/built-in.md>), [changes](<https://devfeed.tech/tags/changes.md>), [compare](<https://devfeed.tech/tags/compare.md>), [compare-pdf-documents](<https://devfeed.tech/tags/compare-pdf-documents.md>), [compare-text-differences-in-pdf](<https://devfeed.tech/tags/compare-text-differences-in-pdf.md>), [comparison](<https://devfeed.tech/tags/comparison.md>), [component](<https://devfeed.tech/tags/component.md>), [custom](<https://devfeed.tech/tags/custom.md>), [document-processing](<https://devfeed.tech/tags/document-processing.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [javascript-pdf-comparison](<https://devfeed.tech/tags/javascript-pdf-comparison.md>), [javascript-web](<https://devfeed.tech/tags/javascript-web.md>), [pdf](<https://devfeed.tech/tags/pdf.md>), [pdf-document-comparison-in-javascript](<https://devfeed.tech/tags/pdf-document-comparison-in-javascript.md>), [pdf-version-comparison](<https://devfeed.tech/tags/pdf-version-comparison.md>), [pdf-viewer](<https://devfeed.tech/tags/pdf-viewer.md>), [review](<https://devfeed.tech/tags/review.md>), [side-by-side-pdf-comparison](<https://devfeed.tech/tags/side-by-side-pdf-comparison.md>), [syncfusion](<https://devfeed.tech/tags/syncfusion.md>), [syncfusion-pdf-viewer](<https://devfeed.tech/tags/syncfusion-pdf-viewer.md>), [text](<https://devfeed.tech/tags/text.md>), [web](<https://devfeed.tech/tags/web.md>)

### AI overview

Syncfusion JavaScript PDF Viewer provides two ways to compare PDF revisions by text: `PdfComparer` offers a ready-made side-by-side interface with a differences panel, while `semanticTextCompare()` returns structured results for custom interfaces and workflows. The built-in comparer supports configurable highlight colors and opacity, hiding the differences panel, and synchronized scrolling. A custom implementation uses two `PdfViewer` instances; the application must manage layout, loading, navigation, and controls. Results include differences associated with each document and a total text difference count. Semantic comparison does not capture every visual change, such as changes to layout or images, and annotation text may appear as added content.

### Source excerpt

Explore how to compare PDF documents in JavaScript using Syncfusion PDF Viewer. Identify text changes between document versions and build custom review experiences.

## JavaScript typeof Operator: Every Result and Its Quirks

DevFeed: [JavaScript typeof Operator: Every Result and Its Quirks](<https://devfeed.tech/articles/javascript-typeof-operator-every-result-and-its-quirks-109249.md>)

Original publisher: [Read original article](<https://markodenic.com/javascript-typeof/>)

Author: Marko

Published: 2026-10-30T09:00:00Z

Content type: article

Language: en

Sources: [Marko Denic Blog](<https://devfeed.tech/sources/marko-denic-blog.md>)

Topics: [JavaScript](<https://devfeed.tech/topics/javascript.md>)

Tags: [arguments](<https://devfeed.tech/tags/arguments.md>), [array](<https://devfeed.tech/tags/array.md>), [arrays](<https://devfeed.tech/tags/arrays.md>), [arrow](<https://devfeed.tech/tags/arrow.md>), [async](<https://devfeed.tech/tags/async.md>), [boolean](<https://devfeed.tech/tags/boolean.md>), [browser](<https://devfeed.tech/tags/browser.md>), [browsers](<https://devfeed.tech/tags/browsers.md>), [bug](<https://devfeed.tech/tags/bug.md>), [class](<https://devfeed.tech/tags/class.md>), [classes](<https://devfeed.tech/tags/classes.md>), [code](<https://devfeed.tech/tags/code.md>), [console](<https://devfeed.tech/tags/console.md>), [constructor](<https://devfeed.tech/tags/constructor.md>), [conversion](<https://devfeed.tech/tags/conversion.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [feature-detection](<https://devfeed.tech/tags/feature-detection.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [null](<https://devfeed.tech/tags/null.md>), [operator](<https://devfeed.tech/tags/operator.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

### AI overview

JavaScript's `typeof` operator returns one of eight strings and is most useful for checking primitive types and functions. Several results need special handling: `null` and arrays both return `"object"`, while `NaN` returns `"number"`; use direct equality for `null`, `Array.isArray()` for arrays, and `Number.isNaN()` or `Number.isFinite()` for numeric checks. `typeof` can safely check undeclared variables, though accessing `let` or `const` before declaration still throws. For more specific object types, the excerpt uses `Object.prototype.toString`; `instanceof` checks whether an object comes from a particular class or constructor. It also shows a finite-number guard for function arguments and notes that wrapper constructors such as `new String()` produce objects.

### Source excerpt

How typeof works in JavaScript: the 8 possible results, the famous quirks (typeof null, arrays, NaN), checking for undefined safely, and the right way to test for arrays, null and objects.

## Two-Colour Zig-Zag Numberlink on Rectangles: A Forbidden-Pattern Characterization, a Constructive Polynomial-Time Algorithm, and a Lean Verification

DevFeed: [Two-Colour Zig-Zag Numberlink on Rectangles: A Forbidden-Pattern Characterization, a Constructive Polynomial-Time Algorithm, and a Lean Verification](<https://devfeed.tech/articles/two-colour-zig-zag-numberlink-on-rectangles-a-forbidden-pattern-characterization-a-constructive-polynomial-time-algorithm-and-a-lean-verification-108572.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.37691>)

Author: Zzyv Zzyzek

Published: 2026-10-30T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Lean](<https://devfeed.tech/topics/lean.md>), [Algorithms](<https://devfeed.tech/topics/algorithms.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>)

Tags: [algorithm](<https://devfeed.tech/tags/algorithm.md>), [c](<https://devfeed.tech/tags/c.md>), [characterization](<https://devfeed.tech/tags/characterization.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [cs-ds](<https://devfeed.tech/tags/cs-ds.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [dynamic-programming](<https://devfeed.tech/tags/dynamic-programming.md>), [graphs](<https://devfeed.tech/tags/graphs.md>), [grid](<https://devfeed.tech/tags/grid.md>), [hamiltonian](<https://devfeed.tech/tags/hamiltonian.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [lean](<https://devfeed.tech/tags/lean.md>), [lean-4](<https://devfeed.tech/tags/lean-4.md>), [patterns](<https://devfeed.tech/tags/patterns.md>), [python](<https://devfeed.tech/tags/python.md>), [verification](<https://devfeed.tech/tags/verification.md>)

### AI overview

The paper characterizes two-pair Zig-Zag Numberlink on rectangles with endpoints anywhere in the grid. When both sides are at least 11, an instance is solvable exactly when it avoids a finite forbidden-pattern catalogue covering parity, border alternation, local corner and edge cases, 65 corner configurations, and forced-route propagation. If either side is at most 10, frontier dynamic programming decides solvability in time linear in the longer side. For solvable instances, a constructive method deletes empty lines, splits by straight cuts, and splices pieces back together in O((R+C)RC) time. Lean 4 verifies the characterization and dynamic-programming correctness; finite checks use native decide. The abstract also reports Python, JavaScript, and C implementations with identical output.

### Source excerpt

arXiv:2610.37691v1 Announce Type: cross Abstract: In Zig-Zag Numberlink, pairs of endpoints in a grid must be joined by vertex-disjoint paths that together visit every cell. The problem is NP-complete when the number of pairs is un- bounded (Adcock et al.). For a single pair it is the Hamiltonian path problem in rectangular grid graphs, solved by Itai, Papadimitriou and Szwarcfiter. Two pairs on a rectangle form the paired 2-disjoint path cover problem. We settle the case of two pairs on rectangles with the endpoints anywhere in the grid. If both sides of the rectangle are at least 11, an instance is solvable if and only if no entry of a finite catalogue of forbidden patterns occurs. The catalogue consists of a parity condition, an alternation condition on the border, a handful of local corner and edge patterns, 65 listed corner configurations, and a rule that propagates forced routes out of the corners before testing alternation. If a side is at most 10, a frontier dynamic programming algorithm decides the instance in time linear in the long side. The characterization is construc- tive. Solutions are built by deleting empty lines, splitting the rectangle by straight cuts, and splicing the pieces back together, in time O((R+C) RC). Both directions of the characterization and the correctness of the dynamic programming algorithm are verified in Lean 4. The finite case analyses, which are window certificates for the corner configurations and a check of all irreducible instances with sides 11-22, are carried out by the Lean compiler via native decide. We describe the algorithm, the catalogue, the proof structure, the compromises made in the formalization, and implementations in Python, JavaScript and C that produce identical output.

## Polymarket halts trading after crypto-draining script breach, $2.5M traced

DevFeed: [Polymarket halts trading after crypto-draining script breach, $2.5M traced](<https://devfeed.tech/articles/polymarket-halts-trading-after-crypto-draining-script-breach-2-5m-traced-106925.md>)

Original publisher: [Read original article](<https://www.bleepingcomputer.com/news/security/polymarket-halts-trading-after-crypto-draining-script-breach-25m-traced/>)

Author: Lawrence Abrams

Published: 2026-10-29T21:47:25Z

Content type: news

Language: en

Sources: [BleepingComputer](<https://devfeed.tech/sources/bleepingcomputer.md>)

Topics: [Cryptocurrency](<https://devfeed.tech/topics/cryptocurrency.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [C2](<https://devfeed.tech/topics/c2.md>)

Tags: [breach](<https://devfeed.tech/tags/breach.md>), [computer-help](<https://devfeed.tech/tags/computer-help.md>), [computer-security](<https://devfeed.tech/tags/computer-security.md>), [computers](<https://devfeed.tech/tags/computers.md>), [crypto](<https://devfeed.tech/tags/crypto.md>), [crypto-drainer](<https://devfeed.tech/tags/crypto-drainer.md>), [cryptocurrency](<https://devfeed.tech/tags/cryptocurrency.md>), [infosec](<https://devfeed.tech/tags/infosec.md>), [infosec-computer-security](<https://devfeed.tech/tags/infosec-computer-security.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [linux](<https://devfeed.tech/tags/linux.md>), [mac](<https://devfeed.tech/tags/mac.md>), [malicious-javascript](<https://devfeed.tech/tags/malicious-javascript.md>), [malware](<https://devfeed.tech/tags/malware.md>), [malware-removal](<https://devfeed.tech/tags/malware-removal.md>), [polymarket](<https://devfeed.tech/tags/polymarket.md>), [prediction-market](<https://devfeed.tech/tags/prediction-market.md>), [security](<https://devfeed.tech/tags/security.md>), [security-incident](<https://devfeed.tech/tags/security-incident.md>), [spyware](<https://devfeed.tech/tags/spyware.md>), [support](<https://devfeed.tech/tags/support.md>), [tech-support](<https://devfeed.tech/tags/tech-support.md>), [technical-support](<https://devfeed.tech/tags/technical-support.md>), [third-party](<https://devfeed.tech/tags/third-party.md>), [third-party-breach](<https://devfeed.tech/tags/third-party-breach.md>), [trading](<https://devfeed.tech/tags/trading.md>), [virus](<https://devfeed.tech/tags/virus.md>), [virus-removal](<https://devfeed.tech/tags/virus-removal.md>), [windows](<https://devfeed.tech/tags/windows.md>)

### AI overview

Polymarket temporarily halted trading after a compromised DebugBear service distributed JavaScript targeting users' authenticated sessions and holdings. The script could sell prediction-market positions or transfer tokens and cryptocurrency through Polymarket's transaction functions; it also sent account and transaction data to DebugBear infrastructure. Researchers traced about 28.6 million POL, valued at roughly $2.57 million, from a suspected attacker wallet, but Polymarket has not disclosed how many users were affected or how much was stolen. The company said it fixed the issue, referred it to law enforcement, resumed trading about an hour after the initial suspension, and would reimburse affected traders. DebugBear advised customers using its RUM product to remove the monitoring embed while it investigated.

### Source excerpt

Prediction market platform Polymarket temporarily suspended trading on Thursday after hackers compromised a third-party service to distribute cryptocurrency-draining JavaScript, with approximately $2.5 million in assets traced to a suspected attacker wallet. [...]

## Ship less JavaScript in Next.js with your AI agent

DevFeed: [Ship less JavaScript in Next.js with your AI agent](<https://devfeed.tech/articles/ship-less-javascript-in-next-js-with-your-ai-agent-105958.md>)

Original publisher: [Read original article](<https://nextjs.org/blog/ship-less-javascript-with-ai>)

Author: Will Binns-Smith

Published: 2026-10-28T20:00:00Z

Content type: release

Language: en

Sources: [Next.js](<https://devfeed.tech/sources/next-js-blog.md>)

Topics: [Agent Skills](<https://devfeed.tech/topics/agent-skills.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [AI Agent](<https://devfeed.tech/topics/ai-agent.md>), [Tool](<https://devfeed.tech/topics/tool.md>)

Tags: [about](<https://devfeed.tech/tags/about.md>), [agent](<https://devfeed.tech/tags/agent.md>), [agent-skill](<https://devfeed.tech/tags/agent-skill.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [also](<https://devfeed.tech/tags/also.md>), [analysis](<https://devfeed.tech/tags/analysis.md>), [analyze](<https://devfeed.tech/tags/analyze.md>), [app](<https://devfeed.tech/tags/app.md>), [apply](<https://devfeed.tech/tags/apply.md>), [apps](<https://devfeed.tech/tags/apps.md>), [async](<https://devfeed.tech/tags/async.md>), [audit](<https://devfeed.tech/tags/audit.md>), [automatically](<https://devfeed.tech/tags/automatically.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [next-js](<https://devfeed.tech/tags/next-js.md>), [optimize](<https://devfeed.tech/tags/optimize.md>), [tools](<https://devfeed.tech/tags/tools.md>), [with](<https://devfeed.tech/tags/with.md>)

### AI overview

Next.js 16.4 adds the `/next-bundle-optimizer` agent skill, which uses Turbopack's module graph to find JavaScript loaded eagerly through unexpected import relationships. It reconstructs module and chunk graphs from exported analysis snapshots, traces import chains, and uses minimum cut to suggest boundaries for deferring code. It also identifies potential React Server Component moves, duplicate large dependencies, and unused code retained by failed tree shaking. Turbopack is required; it has been Next.js's default bundler since version 16. The skill reports suggested fixes by default; `/next-bundle-optimizer fix` applies them so snapshots can be compared, and the article says Vercel verified changes in preview deployments before shipping. Across v0 and vercel.com, reported savings totaled nearly 2 MB of compressed JavaScript. The interactive analyzer also saves snapshots, supports diffs, and highlights modules on the initial render path.

### Source excerpt

Optimize your Next.js app's bundles with the next-bundle-optimizer agent skill, or explore them yourself with new Bundle Analyzer tools.

## How to Convert a String to a Number in JavaScript

DevFeed: [How to Convert a String to a Number in JavaScript](<https://devfeed.tech/articles/how-to-convert-a-string-to-a-number-in-javascript-106037.md>)

Original publisher: [Read original article](<https://markodenic.com/javascript-string-to-number/>)

Author: Marko

Published: 2026-10-28T20:00:00Z

Content type: article

Language: en

Sources: [Marko Denic Blog](<https://devfeed.tech/sources/marko-denic-blog.md>)

Topics: [JavaScript](<https://devfeed.tech/topics/javascript.md>), [concatenation](<https://devfeed.tech/topics/concatenation.md>)

Tags: [bigint](<https://devfeed.tech/tags/bigint.md>), [comparison](<https://devfeed.tech/tags/comparison.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [money](<https://devfeed.tech/tags/money.md>), [number](<https://devfeed.tech/tags/number.md>), [plus](<https://devfeed.tech/tags/plus.md>), [string](<https://devfeed.tech/tags/string.md>), [table](<https://devfeed.tech/tags/table.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>), [web-development](<https://devfeed.tech/tags/web-development.md>)

### AI overview

Use `Number(str)` for a strict conversion of the whole string: it returns `NaN` for trailing units, but turns empty or whitespace-only strings into `0`, so handle those separately and validate with `Number.isFinite()`. Use `parseInt(str, 10)` or `parseFloat(str)` to read a number from the start of text with units; `parseInt` truncates decimals, while `parseFloat` keeps them. Unary plus behaves like `Number()`. The article also advises `array.map(Number)` instead of `array.map(parseInt)`, notes JavaScript's basic parsing does not handle locale grouping separators, and recommends `BigInt` or strings for integers beyond the safe-number range. For money, it suggests integer cents because decimal arithmetic can be inexact.

### Source excerpt

Convert a string to a number in JavaScript with Number(), parseInt(), parseFloat() and unary plus. Which one to use, a comparison table of edge cases, and how to validate, handle BigInt and money.

[Next page](<https://devfeed.tech/topics/javascript.md?cursor=WyIyMDI2LTEwLTI4VDIwOjAwOjAwKzAwOjAwIiwgIjI0NGNhZDQ4LTRlNDMtNGVlMi1iNTBhLTlhMmI5NTQ1NThiNiJd>)