#javascript

[ follow ]
#bot-detection
JavaScript
fromSmashing Magazine
1 week 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 days 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.
#cookies
fromLogRocket Blog
1 week 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
Node JS
from2ality
4 days ago

[Web dev for beginners] Node.js

Node.js runs JavaScript outside browsers, providing a shell REPL, file execution, web server capability, and installable CLI tools for web development.
JavaScript
fromjQuery Script
1 week 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
1 week 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 week 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 week 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 week 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
2 weeks 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
2 weeks 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.
Web development
fromSubstack
2 weeks ago

Friday Links #30 - The Week in JavaScript: Fresh Tools & Updates

Friday Links #30 highlights diverse JavaScript tools, frameworks, AI integrations, and developer utilities driving modern web development productivity and experimentation.
fromRaymondcamden
3 weeks ago

Links For You (10/12/25)

I feel like this is something that's been shared before, and heck, I've talked about this myself many times as well, but it's a useful reminder that many things we've used JavaScript for in the past are not actually necessary and can be done by simpler, less complex means. Check out "You no longer need JavaScript", a great post focused on CSS improvements primarily but also some relevant HTML features you may not be aware of.
JavaScript
fromTechzine Global
3 weeks ago

Meta transfers React to Linux Foundation

Meta is transferring React, React Native, and JSX to a new organization: the React Foundation. This foundation will become part of the Linux Foundation. The organization's purpose is to ensure that the development of the popular JavaScript framework is no longer under the direct influence of a single company. React was developed by Facebook in 2013. It has grown to become the most widely used front-end framework for web development.
Web frameworks
JavaScript
fromMedium
1 month ago

Python is consistent about modular arithmetic, like Mathematica

Mainstream programming languages' % operator yields negative remainders for negative operands, producing −3 for −3 % 4 instead of the mathematically expected 1.
#html5-canvas
fromO'Reilly Online Learning
4 weeks ago
JavaScript

Supercharged JavaScript Graphics

Use JavaScript, jQuery, DHTML, and HTML5 Canvas to build high-performance web graphics, games, dashboards, and mobile apps with optimization and advanced UI techniques.
fromO'Reilly Online Learning
4 weeks ago
JavaScript

Supercharged JavaScript Graphics

JavaScript, jQuery, DHTML, and HTML5 Canvas enable creation of high-performance, cross-platform web and mobile graphics, games, UIs, and interactive dashboards.
fromallthingssmitty.com
1 month ago

How to group arrays in JavaScript without reduce() - Matt Smith

JavaScript now has native support for grouping data with Object.groupBy() and Map.groupBy(). These static methods make grouping expressive, concise, and far more readable, without the need for external libraries or complex reduce() patterns. What are Object.groupBy() and Map.groupBy()? Both of these methods were introduced in ES2024 and allow you to group elements of an array by a key generated from a callback function.
JavaScript
fromSlicker
1 month ago
JavaScript

JavaScript Tutorial on the Fern Fractal (Barnsley Fern)

A simple Iterated Function System of four affine transforms applied randomly with fixed probabilities generates the Barnsley fern's detailed leafy shape.
fromInfoWorld
1 month ago

Chainguard offers malware-resistant JavaScript libraries

The libraries, which are built from source on SLSA L2 (Supply-chain Levels for Software Artifacts) infrastructure, were introduced on September 25. By securely building each library and its dependencies from source, Chainguard Libraries for JavaScript offers security and engineering teams confidence that malware has not been inserted during the build or distribution of libraries in the JavaScript ecosystem, according to Chainguard. This eliminates a significant gap in the threat landscape, Chainguard added.
JavaScript
[ Load more ]