#javascript

[ follow ]
JavaScript
from2ality
8 hours ago

Learning web development: JavaScript Maps

Map stores key-value pairs allowing lookup, insertion, and existence checks, and can use objects as keys with strict (===) identity comparison.
from2ality
1 day ago

Learning web development: JavaScript exceptions

JavaScript classes create object instances invoked with new; use instanceof to test instances and Error.stack provides stack traces to locate runtime errors.
#bot-detection
from2ality
1 day ago

JavaScript's trademark problem

During its lifetime, JavaScript has had several names: During development, its name was Mocha. In the Netscape Navigator 2.0 betas (September 1995), it was called LiveScript. In Netscape Navigator 2.0 beta 3 (December 1995), it got its most common name, JavaScript. Why that name? JavaScript was going to be a glue language for components written in Java. The first standard for JavaScript was published in 1997, hosted by Ecma International (called ECMA at the time).
Web development
Web development
from2ality
2 days ago

Learning web development: Plain objects in JavaScript

Plain JavaScript objects group related named data into properties for reading and writing; classList.toggle toggles a CSS class to show or hide DOM content.
#cookies
fromZacks
3 days ago
Privacy technologies

Pardon Our Interruption

Enable JavaScript and cookies and disable blocking plugins or reduce automated browsing speed to regain access when the browser is mistaken for a bot.
JavaScript
from2ality
3 days ago

Learning web development: Modules and testing in JavaScript

Use export to expose values from a JavaScript module and import with relative paths or URLs to reuse code across files and run modules with Node.js.
fromZacks
5 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.
fromAllthingssmitty
5 days ago

Understanding Promise.any(): when one success is enough - Matt Smith

Promises have long been our go-to when working with asynchronous code in JavaScript. If you've used Promise.all() or Promise.race() to coordinate async operations, you know the patterns. But what if you're only interested in the first successful result, ignoring failures? That's exactly what Promise.any() does: it fulfills with the first resolved promise and ignores any that reject (unless all reject).
JavaScript
JavaScript
from2ality
1 week ago

Learning web development: Loops in JavaScript

Use for-of loops to iterate arrays, use array.push() to build output arrays incrementally, and use array.join() to concatenate array strings.
fromSubstack
1 week ago

Weekly JavaScript Roundup: Friday Links 26

A weekly JavaScript-focused roundup highlights new open-source projects, learning tools, technical guides, AI developments, and practical tutorials to keep developers informed and productive.
fromCSS-Tricks
1 week ago

3D Layered Text: Interactivity and Dynamicism | CSS-Tricks

This time, we're going dynamic. In this final chapter, we're stepping into the world of interactivity by adding JavaScript into the mix. We'll start by generating the layers programmatically, giving us more flexibility and cleaner code (and we'll never have to copy-paste divs again). Then, we'll add some interaction. Starting with a simple :hover effect, and ending with a fully responsive bulging text that follows your mouse in real time. Let's go.
JavaScript
fromTreehouse Blog
1 week ago

Python vs. JavaScript Comparison for 2025

If you already know JavaScript, learning Python will feel easier because many core concepts are the same. Both languages use similar data types (strings, numbers, lists/arrays, objects/dictionaries), functions with default parameters, and control flow (loops, conditionals). The biggest differences are in syntax: Python relies on indentation instead of curly braces, uses keywords like def instead of function, and is generally more concise. Your JavaScript knowledge gives you a strong head start-you'll just need to adjust to Python's style and rules.
JavaScript
fromInfoQ
1 week ago

Oxlint v1.0 Stable Released: A Rust Based JavaScript Linter

Oxlint 1.0 offers fast linting with extensive rule coverage and simple migration tools for both open-source and enterprise projects.
fromCSS-Tricks
1 week ago

3D Layered Text: The Basics | CSS-Tricks

A bulging text effect can be created using advanced CSS techniques along with JavaScript for interactivity.
#web-development
from2ality
2 weeks ago
Web development

Learning web development: numbers, variables, functions in JavaScript

from2ality
2 weeks ago
Web development

Learning web development: numbers, variables, functions in JavaScript

fromSlicker
1 week ago

JavaScript tutorial - Minesweeper game

The board consists of rows and columns of tiles, some of which contain a mine. Initially all tiles are covered. The point of the game is to uncover all the tiles except the ones containing the mines.
Games
from2ality
1 week ago

Learning web development: strings and methods in JavaScript

Strings are defined as sequences of characters, which can be combined and returned through functions.
#ai
fromBusiness Matters
3 weeks ago

Hiring Software & JavaScript Developers: Skills, Costs, and Best Practices

Finding software talent requires aligning technical skills with business objectives.
fromArs Technica
3 weeks ago

Adult sites are stashing exploit code inside racy .svg files

JavaScript Trojan exploits users' Facebook accounts to like posts without consent.
fromSmashing Magazine
3 weeks ago

The Power Of The Intl API: A Definitive Guide To Browser-Native Internationalization - Smashing Magazine

Internationalization involves more than just text translation; it encompasses formatting dates, pluralization, and sorting according to cultural expectations. The Intl API allows modern JavaScript to handle these tasks natively.
JavaScript
fromPractical Ecommerce
3 weeks ago

AI Crawler Optimization Tips

Generative AI platforms such as ChatGPT and Claude require websites to be crawlable by AI bots for effective mentions and citations. Disabling JavaScript improves crawlability, as many AI crawlers struggle with JavaScript rendering, which differs from Google’s capabilities. This means publishers must ensure essential content is accessible even without JavaScript. AI optimization tools like Aiso can evaluate and enhance a site's crawlability, providing suggestions for improvement. Site owners must also verify their robots.txt files to allow AI bot access, as many content management systems restrict bots by default.
Web development
JavaScript
fromInfoWorld
3 weeks ago

Fun and profit with ECMAScript 2025: What's new in JavaScript

Motivation in software development balances enjoyment and the necessity of making a living.
#boxlang
#website-access
#typescript
fromInfoQ
3 weeks ago
Web development

Microsoft Releases TypeScript 5.9 with Deferred Imports and Enhanced Developer Experience

fromgithub.com
1 month ago
Web development

GitHub - JakeRoggenbuck/regolith: A server-side TypeScript and JavaScript library immune to Regular Expression Denial of Service (ReDoS) attacks by using Rust and linear RegEx under the hood. Regolith has a linear worst case time complexity, compared to the default RegExp found in TypeScript and JavaScript, which has an exponential worst case.

fromInfoQ
3 weeks ago
Web development

Microsoft Releases TypeScript 5.9 with Deferred Imports and Enhanced Developer Experience

fromgithub.com
1 month ago
Web development

GitHub - JakeRoggenbuck/regolith: A server-side TypeScript and JavaScript library immune to Regular Expression Denial of Service (ReDoS) attacks by using Rust and linear RegEx under the hood. Regolith has a linear worst case time complexity, compared to the default RegExp found in TypeScript and JavaScript, which has an exponential worst case.

fromCSO Online
1 month ago

Supply chain attack compromises npm packages to spread backdoor malware

In a newly discovered supply chain attack, attackers last week targeted a range of npm-hosted JavaScript type testing utilities, several of which were successfully compromised to distribute malware.
JavaScript
#deno
JavaScript
frompawelgrzybek.com
2 months ago

What's new in ECMAScript 2025 | pawelgrzybek.com

ES2025 introduces new features such as enhanced regex capabilities, improved Set methods, subexpression modifiers, and a new import type attribute.
#npm
fromBleepingComputer
1 month ago

npm 'accidentally' removes Stylus package, breaks builds and pipelines

npm has taken down all versions of the real Stylus library and replaced them with a 'security holding' page, breaking pipelines and builds worldwide that rely on the package.
Web development
fromHackernoon
2 years ago

A Simple Way to Build a Progress Bar for Your Website's Image Uploader Using Filestack | HackerNoon

Building a custom progress bar from scratch requires boilerplate JavaScript using XMLHttpRequest and its upload.onprogress event.
Web development
#ecmascript-2025
fromSmashing Magazine
1 month ago

Handling JavaScript Event Listeners With Parameters - Smashing Magazine

JavaScript event listeners require proper management to prevent memory leaks.
fromThe Hacker News
1 month ago

3,500 Websites Hijacked to Secretly Mine Crypto Using Stealth JavaScript and WebSocket Tactics

"This was a stealth miner, designed to avoid detection by staying below the radar of both users and security tools," security researcher Himanshu Anand said.
Privacy professionals
fromInfoWorld
1 month ago

ECMAScript 2025: The best new features in JavaScript

The latest JavaScript specification introduces a built-in global Iterator object, enhancing the functional programming capabilities of iterable collections with improved lazy evaluation and syntax.
JavaScript
fromZacks
1 month ago

Pardon Our Interruption

If you are a power user moving through the website with great speed, it may trigger a false positive detection as a bot. This can happen even when users are legitimate and simply browsing quickly without automated tools.
fromSubstack
1 month ago

Vite vs Webpack: A Guide to Choosing the Right Bundler

Vite offers faster development and simpler configuration compared to Webpack, which excels in customization and advanced production features.
Node JS
fromInfoWorld
1 month ago

Latest Node.js boosts stream performance

Node.js v20.8.0 significantly improves performance and memory management for streams and vm APIs.
fromAdropincalm
1 month ago
Web development

Create React UI component with uncontrollable

Uncontrollable simplifies state management in React UI libraries, reducing boilerplate code for handling props.
Gadgets
fromZacks
1 month ago

Pardon Our Interruption

JavaScript and cookies must be enabled in the browser to ensure access to the website.
fromCodewithdan
1 month ago

AI Repo of the Week: Generative AI for Beginners with JavaScript

Generative AI for Beginners with JavaScript teaches developers to build AI-powered apps through interactive learning and hands-on coding.
JavaScript
fromAllthingssmitty
2 months ago

Default parameters: your code just got smarter - Matt Smith

Default parameters in JavaScript simplify function definitions by allowing defaults directly in the signature, reducing errors related to falsy values.
JavaScript
fromJrsinclair
2 months ago

What's the difference between named functions and arrow functions in JavaScript?

Arrow functions simplify syntax but differ from traditional function declarations and expressions in their handling of 'this' and hoisting.
Node JS
fromHackernoon
5 months ago

Offline-First JavaScript for Space Missions: How JS Thrives in Low-Connectivity Environments | HackerNoon

JavaScript is increasingly being utilized in space missions as an offline-first language.
fromZacks
2 months ago
Web frameworks

Pardon Our Interruption

Websites may mistakenly identify users as bots due to disabled cookies or JavaScript.
fromInfoQ
2 months ago

JSON Modules Can Now Be Imported in JavaScript in All Modern Browsers, CSS Modules to Follow

JSON modules are now supported in all modern browsers, simplifying import in JavaScript code.
fromRubyflow
2 months ago
UX design

The Hotwire-Rails summit, or interactive multi-step forms at peak UX

Hotwire combined with Rails can deliver interactive user experiences without needing a complete shift to JavaScript frameworks.
#programming
fromMedium
4 years ago

10 Utility Functions for Working with Objects in JavaScript

Object.entries() returns an array of [key, value] pairs for all the owned properties of an object, enabling various array methods for manipulation.
Video games
[ Load more ]