#javascript

[ follow ]
#bot-detection
#cookies
Web development
fromwww.jqueryscript.net
1 day ago

Weekly Web Design & Development News: Collective #632

Weekly roundup of web development and design resources: JS/CSS libraries, code snippets, UI components, AI tools, design freebies, and major news like Gemini 3 Pro.
fromThe Code Barbarian
4 days ago

Using Tries to Autocomplete MongoDB Queries in Node.js

Autocomplete seems like one of the easiest features to build. You take the user's input, loop through your list of options, and filter anything that starts with the same prefix: const matches = words.filter(w => w.startsWith(prefix)); And that works for small lists of text. But once your dataset gets large, or your completions come from structured text (like user.address.city or $gte), simple loops start to fall short.
JavaScript
Information security
fromBleepingComputer
2 weeks ago

Popular JavaScript library expr-eval vulnerable to RCE flaw

Critical RCE vulnerability (CVE-2025-12735) in expr-eval/expr-eval-fork allows remote code execution via unvalidated Parser.evaluate() context variables.
Web development
fromAllthingssmitty
2 weeks ago

Error chaining in JavaScript: cleaner debugging with Error.cause - Matt Smith

Use Error.cause to preserve original errors and stack traces when wrapping and re-throwing errors, enabling clearer root-cause debugging in layered JavaScript code.
#web-development
UX design
fromJared Cunha
1 month ago

HTML dialog: Getting accessibility and UX right

Accessible modals require intentional focus management, background content disabling, clear dismissal, user awareness, and focus return to a logical place for all users.
JavaScript
fromjsdevspace.substack.com
2 weeks ago

JavaScript Just Leveled Up: ES2025 - You'll Fall in Love With

ES2025 adds pattern matching and a pipeline operator enabling concise, readable, declarative JavaScript control flow and data transformations.
Privacy technologies
fromZacks
2 weeks ago

Pardon Our Interruption

Enable cookies and JavaScript, disable blocking plugins, and avoid excessively fast automated browsing to prevent being mistaken for a bot.
JavaScript
fromSmashing Magazine
4 weeks ago

JavaScript For Everyone: Iterators - Smashing Magazine

Iterables implement a [Symbol.iterator]() method to produce iterators; iterators follow the iterator protocol and allow sequential element access (usable by for...of).
fromZacks
3 weeks ago

Pardon Our Interruption

As you were browsing something about your browser made us think you were a bot. There are a few reasons this might happen: You've disabled JavaScript in your web browser. You're a power user moving through this website with super-human speed. You've disabled cookies in your web browser. A third-party browser plugin, such as Ghostery or NoScript, is preventing JavaScript from running. Additional information is available in this support article.
fromLogRocket Blog
3 weeks ago

Is Promise.all still relevant in 2025? - LogRocket Blog

When promises were introduced natively in JavaScript, it was definitely a game-changer. In a lot of projects, the usage of callbacks was replaced by promises for running asynchronous tasks, and promises became the main alternative to it. Promises resemble callbacks in some ways, but with an easier-to-follow syntax and a better understanding of the code.
Web development
from2ality
3 weeks ago

[Web dev for beginners] Node.js

That gives us the following useful features: We can start a JavaScript console from a shell. We can run files with JavaScript code from a shell. That is useful for automatically testing if our code is correct - a topic that we'll explore in a future chapter. We can write web servers in Node.js - which is another topic that we'll explore in the future. Node.js lets us install shell commands that help with web development.
Node JS
JavaScript
fromjQuery Script
3 weeks ago

Add Customizable Measurement Rulers to Web Pages with ruler-js

On-screen horizontal and vertical rulers with multiple units, interactive crosshairs, automatic DPI detection, live mouse coordinates, responsive redrawing, and customizable appearance for precise layout measurement.
fromSitePoint Forums | Web Development & Design Community
3 weeks ago

Could someone please help check my url string to page output code is safe?

<script type=&quot;text/javascript&quot;&gt; function sanitize(input) { return input .replace(/([^a-z\d\s]+)/gi, ' ') .replace(/(\s+)/gi, ' '); } // Parse the URL parameter function getParameterByName(name, url) { if (!url) url = window.location.href; name = name.replace(/[\[\]]/g, &quot;\\$&amp;&quot;); var regex = new RegExp(&quot;[?&amp;]&quot; + name + &quot;(=([^&amp;#]*)|&amp;|#|$)&quot;), results = regex.exec(url); if (!results) return null; if (!results[2]) return ''; return decodeURIComponent(results[2].replace(/\+/g, &quot; &quot;)); } // Give the parameter a variable name and sanitize var dynamicContent = sanitize(getParameterByName('donor')); var dynamicContent2 = sanitize(getParameterByName('amount')); //Output the text to the page document.getElementById(&quot;formText&quot;).innerText = dynamicContent document.getElementById(&quot;formText2&quot;).innerText = dynamicContent2 &lt;/script&gt;
Web development
JavaScript
fromPiccalilli
1 month ago

NaN, the not-a-number number that isn't NaN

NaN propagates through arithmetic and comparisons as an error state; NaN is unequal to every value, including itself.
Web development
fromSubstack
1 month ago

How JavaScript Became the Beating Heart of Web3

JavaScript is the de facto language of Web3, powering wallets, RPC interactions, smart-contract tooling, deployments, testing, and Node.js-based developer workflows.
fromCSS-Tricks
1 month ago

An Introduction to JavaScript Expressions | CSS-Tricks

Well, not here-here; technically, I'm over at JavaScript for Everyone to teach you JavaScript. What we have here is a lesson from the JavaScript for Everyon e module on lexical grammar and analysis - the process of parsing the characters that make up a script file and converting it into a sequence of discrete &quot;input elements&quot; (lexical tokens, line ending characters, comments, and whitespace), and how the JavaScript engine interprets those input elements.
JavaScript
JavaScript
fromSubstack
1 month ago

Why JavaScript forEach Cannot Be Interrupted

forEach cannot be interrupted with break, continue, or early return because it executes a callback function rather than exposing loop-level control flow.
Apple
fromComputerworld
1 month ago

Omni Group devs explain how they use Apple Foundation Models

Omni Automation integrates Apple Foundation Models via JavaScript to locally generate structured, multi-level JSON data and enable powerful, precise automated workflows using Apple Intelligence.
[ Load more ]