saad.sh
TagsAbout

Filtered archive

Posts tagged #JAVASCRIPT

6 posts filed under this topic.

September 25, 2025

Share pages and technical docs with ChatGPT, Claude, and v0 using URL queries

Share the current page with AI assistants like ChatGPT, Claude, and v0 using simple URL query strings for a single-click hand-off experience.

#AI#JAVASCRIPT
June 21, 2024

Streaming data in Next.js using API route

Learn how to stream data in Next.js using the TransformStream API and server-sent events for real-time data updates.

#NEXTJS#JAVASCRIPT
May 13, 2024

JavaScript's Defaults: || vs. ??

Understanding the difference between Logical OR (||) and Nullish Coalescing (??) operators in JavaScript for setting default values.

#JAVASCRIPT
April 3, 2023

How to mock express middleware in Jest

Learn how to mock Express middleware functions in Jest tests using jest.mock.

#JEST#JAVASCRIPT
April 1, 2023

Mocking modules in Jest.js

Complete guide to mocking modules in Jest for both CommonJS and ES Module syntax, including named imports, default exports, and partial mocks.

#JEST#JAVASCRIPT
February 4, 2023

Avoid bugs when using Array fill()

Array.fill in JavaScript passes objects by reference, not by value. Learn how to avoid common bugs when using this method.

#JAVASCRIPT

saad.sh

Personal blog for software notes, patterns, and experiments.

© 2026 saad.sh. All rights reserved.