XIO

xWire

Posts from every feed QUEST has found across the web — blogs, news, podcasts, channels and more.

JavaScript – CodeForGeek

Programming Blog for Geeks

Set Values in JavaScript: Methods and Operations

JavaScript code may need to keep track of distinct values. A Set stores one member for each value under JavaScript’s equality rules and lets you check membership. I’ll show how to read Set values and combine collections when the target runtime supports those methods. TL;DR: Read and Combine Set Values A JavaScript Set stores distinct […]

JavaScript setInterval: How to Repeat Code

Repeating work in JavaScript starts with choosing a function and a delay. setInterval() schedules that function to run repeatedly and returns a handle that clearInterval() can cancel. I’ll show how to save and clear the handle, then explain why recursive setTimeout() kept this example to one task running at a time. TL;DR Use setInterval() with […]

Dynamically Add and Remove HTML Table Rows

To make an HTML table respond to changes after a page loads, you can update its rows with JavaScript. JavaScript inserts or removes rows in the page’s DOM without rebuilding the whole page. I’ll show how to add a row and remove the row containing the clicked button. TL;DR: Add and Remove Table Rows Use […]

JavaScript Boolean Variable: Declare and Check

Declaring a JavaScript variable for a true-or-false state starts by assigning true or false. A Boolean variable holds that value for an if condition to evaluate. This article shows how to declare a Boolean variable and check it in an if condition. TL;DR A JavaScript Boolean variable holds the primitive value true or false, so […]

URL Encode JavaScript: Build and Decode a Value

A JavaScript URL needs to carry a changing value without letting its punctuation alter the address structure. URL encoding converts data into text that can travel in a URL while keeping its separators in place. This article shows how to encode one value with encodeURIComponent() and build and decode query parameters with URLSearchParams. TL;DR Use […]

Building a Desktop Search App with Electron

Putting a search page in its own desktop window starts with choosing a framework that can run it as an application. Electron lets a JavaScript interface run in a desktop window, with Chromium and Node.js included in the application. I’ll show you how to create an Electron Forge project and add Google’s Programmable Search Element […]

MENDS MariaDB Full-Stack Architecture

Following a browser edit back to the database means tracing the server-side steps between the page and the stored row. MENDS is an architecture that connects MariaDB rows to shared Deepstream records through a Node service. This article traces a row from MariaDB to a subscribed Deepstream record, then explains what to check before adapting […]

How to Replace an HTML Element with replaceWith()

After a task finishes, a page may need to show a new status while keeping its surrounding container. Element.replaceWith() swaps the selected element for a node or text in its parent. I’ll walk through replacing an element and checking the updated DOM. TL;DR: Replace an Element with replaceWith() Call native Element.replaceWith() on the element to […]

Regular Expressions in JavaScript

To check whether a string follows a format, such as a code made of two letters, a hyphen and four digits, JavaScript gives you regular expressions. A regular expression, or regex, is a pattern that searches text for a particular arrangement of characters. Here I’ll write one and make it match the whole string when […]

How to Use IndexedDB in JavaScript for Browser Storage

IndexedDB lets your JavaScript application store structured data in a browser, then query that data without sending every read to a server. I checked the current browser API guidance from MDN, web.dev, and the Indexed Database specification, then ran the example against Node.js 26.7.0 with fake-indexeddb 6.2.5. IndexedDB or localStorage? Use localStorage for a few […]

JavaScript alert, prompt and confirm: Input alert dialog box guide

I ran each JavaScript alert, prompt, and confirm branch in Chrome 149, including OK, Cancel, empty input, and number conversion. The useful distinction is the value each dialog returns after it closes, because that value determines the next branch in your program. Alert vs prompt vs confirm All three methods belong to the browser’s Window […]

How to Create AI Wrappers Using JavaScript (And Build a Profitable AI Tool)

An AI wrapper connects a focused interface and workflow to a large language model (LLM) through an application programming interface (API), and Google’s July 2026 documentation recommends the Interactions API for this JavaScript build with the Google GenAI software development kit (SDK), a server-side key, and the gemini-3.6-flash model. What an AI wrapper needs to […]

Add Chatbot Memory Without a Database in Node.js

A process-local array lost every saved preference when I restarted the Node.js process, while the file-backed test loaded the same preference after restart. Chatbot memory without a database needs three explicit parts: a bounded recent transcript, user-approved facts in a local JSON file, and a deletion command. What Chatbot Memory Means in This Build A […]