Topic

#JavaScript

91 posts tagged “JavaScript”.

Takina Takina · · 4 min read

TypeScript Abstract Classes, Explained

Abstract classes in TypeScript define shared implementation plus methods subclasses must fill in. How they differ from interfaces and when to reach for them.

#TypeScript #JavaScript #Web Development
Takina Takina · · 3 min read

React Suspense, Explained

React Suspense lets components pause rendering while they wait on async data, showing a fallback UI instead of manual loading-state juggling.

#React #JavaScript #Frontend
Takina Takina · · 4 min read

What Is a Lockfile? Reproducible Dependency Installs

A lockfile records the exact dependency versions your package manager resolved, so every install — from your laptop to CI — reproduces the same tree.

#JavaScript #Web Development #Developer Tools
Takina Takina · · 3 min read

TypeScript's never Type, Explained

never represents values that can't exist — it marks unreachable code, exhaustive switches, and functions that always throw or loop forever.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

TypeScript readonly Modifiers Explained

TypeScript's readonly keyword blocks reassignment at compile time for properties, arrays, and tuples — with no runtime enforcement at all.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

JavaScript Intl API: Formatting Dates and Numbers

The Intl API formats dates, numbers, and currency using a user's locale without a library. How Intl.DateTimeFormat and Intl.NumberFormat work.

#JavaScript #Web Development #Developer Tools
Takina Takina · · 4 min read

requestIdleCallback Explained

requestIdleCallback runs low-priority JavaScript when the browser is idle, without blocking rendering, input, or the main thread.

#JavaScript #Performance #Web Development
Takina Takina · · 5 min read

Turbopack vs Webpack: Choosing a JS Bundler

Turbopack is a Rust-based bundler built for incremental speed; Webpack is the mature, plugin-heavy standard. How they differ and when to pick each.

#JavaScript #Web Development #Developer Tools
Takina Takina · · 5 min read

Promise.all() vs allSettled() vs race() Compared

Promise.all() fails fast, allSettled() waits for every result, and race() returns whichever promise finishes first — how to choose correctly.

#JavaScript #Web Development #Frontend
Takina Takina · · 4 min read

JavaScript Spread vs Rest Operators, Explained

The spread operator (...) expands an iterable into individual elements; the rest operator collects elements back into an array. Same syntax, opposite jobs.

#JavaScript #Web Development #Frontend
Takina Takina · · 4 min read

TypeScript's `as const`, Explained

TypeScript's as const assertion locks a value to its literal, readonly type instead of widening it. How it works and when to reach for it.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

ResizeObserver API Explained: Watching Element Size

The ResizeObserver API lets JavaScript watch an element's box size and react without polling or resize-event hacks. How it works and when to use it.

#Web Development #JavaScript #Frontend
Takina Takina · · 5 min read

Finding and Fixing Memory Leaks in JavaScript

A JavaScript memory leak happens when a reference outlives its usefulness and the garbage collector can't reclaim it. Common causes and how to find them.

#JavaScript #Web Development #Performance
Takina Takina · · 4 min read

localStorage vs sessionStorage vs Cookies

localStorage, sessionStorage, and cookies all store data in the browser, but differ in lifetime, size limits, and whether the server can see them.

#JavaScript #Web Development #Frontend
Takina Takina · · 5 min read

Web Push Notifications: How the Push API Works

The Push API lets a web app send notifications through a service worker, even when the site isn't open in a browser tab. Here's the full flow.

#JavaScript #Web Development #Frontend
Takina Takina · · 4 min read

JavaScript's this Keyword, Explained

How JavaScript determines what this refers to: default, implicit, explicit, and new binding, plus why arrow functions behave differently.

#JavaScript #Web Development #Frontend
The Lycoris Team The Lycoris Team · · 4 min read

What Is a Monad? A Practical Explanation for Programmers

A monad is a wrapper type with rules for chaining operations that might fail, be async, or carry extra context — like Promise or Optional, generalized.

#Computer Science #Programming Languages #JavaScript
Takina Takina · · 5 min read

TypeScript Type Guards, Explained

Type guards are functions and checks that narrow a TypeScript union to a specific type at runtime. How typeof, instanceof, in, and custom guards work.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

TypeScript Function Overloads Explained

TypeScript function overloads let one function name accept multiple call signatures with different types. How overload signatures work and when to use them.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

Tagged Template Literals in JavaScript, Explained

Tagged template literals let a function intercept a template string's parts before interpolation — the mechanism behind safe SQL, styled-components, and i18n.

#JavaScript #Web Development #TypeScript
Takina Takina · · 5 min read

What Is IndexedDB? Browser-Side Structured Storage

IndexedDB is a browser API for storing large amounts of structured data client-side, with indexes, transactions, and no size limit like localStorage.

#Web Development #JavaScript #Frontend
Takina Takina · · 4 min read

JavaScript Event Delegation Explained

Event delegation attaches one listener to a parent instead of one per child, using event bubbling to catch clicks from elements added after page load.

#JavaScript #Web Development #Frontend
Takina Takina · · 4 min read

Intersection Observer API Explained

The Intersection Observer API tells you when an element enters or leaves the viewport, without scroll-event polling. How it works and where to use it.

#JavaScript #Web Development #Performance
Takina Takina · · 4 min read

structuredClone() Explained: Deep Copies in JS

structuredClone() is a built-in JavaScript function for deep-copying values, including cycles and typed arrays, without the workarounds JSON tricks require.

#JavaScript #Web Development #Frontend
Takina Takina · · 4 min read

TypeScript Template Literal Types Explained

Template literal types let TypeScript build string types from other types, like JavaScript template strings. How they work, with practical patterns.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

TypeScript interface vs type: What's the Difference

TypeScript's interface and type both describe object shapes, but they diverge on declaration merging, unions, and extension. When to reach for each.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

What Is requestAnimationFrame? Smooth JS Animation

requestAnimationFrame schedules a callback right before the browser repaints, syncing JavaScript animation to the display's refresh rate. How it works.

#JavaScript #Frontend #Performance
Takina Takina · · 4 min read

Solid.js vs React: Two Models of Reactivity Compared

Solid.js uses fine-grained signals and no virtual DOM; React re-renders components and diffs. How the two reactivity models differ in practice.

#JavaScript #Frameworks #Web Development
Takina Takina · · 5 min read

Server-Sent Events vs WebSockets: Which to Use

SSE streams one-way updates over plain HTTP; WebSockets open a full-duplex channel. How they differ and which fits your real-time feature.

#Web Development #JavaScript #Networking
Takina Takina · · 4 min read

TypeScript Mapped Types Explained

Mapped types transform one type into another by iterating over its keys — the mechanism behind Partial, Readonly, Record, and Pick under the hood.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

TypeScript Enums Explained (and When to Avoid Them)

TypeScript enums group named constants under one type. How numeric, string, and const enums compile, and when a union type is the better choice.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

TypeScript Discriminated Unions Explained

A discriminated union tags each variant of a type with a shared literal field, letting TypeScript narrow the type automatically inside a switch or if check.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

var vs let vs const in JavaScript

var, let, and const differ in scope, hoisting behavior, and reassignment rules. Here's what each one actually does and when to reach for it.

#JavaScript #Web Development #Frontend
Takina Takina · · 4 min read

ESLint vs Prettier: Linting vs Formatting

ESLint catches bugs and enforces code patterns; Prettier only reformats how code looks. Why most JavaScript projects run both, not one or the other.

#JavaScript #Web Development #Developer Tools
Takina Takina · · 4 min read

JavaScript Optional Chaining and Nullish Coalescing

Optional chaining (?.) short-circuits on null or undefined instead of throwing; nullish coalescing (??) supplies a default only for null or undefined.

#JavaScript #Web Development #Frontend
Takina Takina · · 4 min read

JavaScript Prototypal Inheritance Explained

Prototypal inheritance means JavaScript objects inherit properties directly from other objects via a prototype chain, not from classes. How it works.

#JavaScript #Web Development #Frontend
Takina Takina · · 4 min read

Web Workers vs Service Workers: What's the Difference

Web workers run scripts off the main thread for parallel computation. Service workers intercept network requests for offline and caching. How they differ.

#JavaScript #Web Development #Performance
Takina Takina · · 4 min read

TypeScript unknown vs any: What's the Difference

TypeScript's unknown forces a type check before use; any opts out of type checking entirely. When to reach for each in real code.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

TypeScript Conditional Types Explained

Conditional types let TypeScript pick a type based on another type, using T extends U ? X : Y — the foundation of most advanced type utilities.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

Vue vs React: Which Framework Fits Your Project

Vue uses a template syntax with a reactive proxy system; React uses JSX with a virtual DOM. How the two frameworks differ and when to pick each.

#JavaScript #Frameworks #Web Development
Takina Takina · · 5 min read

WeakMap and WeakRef in JavaScript, Explained

A WeakMap holds object keys without blocking garbage collection, unlike a regular Map. How WeakMap and WeakRef work and when to reach for them.

#JavaScript #Web Development #Frontend
Takina Takina · · 4 min read

JavaScript Map and Set: When to Use Them Over Objects

JavaScript's Map and Set are built-in collections with cleaner semantics than plain objects and arrays. Here's how each works and when to reach for one.

#JavaScript #Web Development #Frontend
Takina Takina · · 4 min read

The TypeScript satisfies Operator, Explained

TypeScript's satisfies operator checks a value against a type without widening or erasing its inferred literal type. Here's when to reach for it.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

TypeScript Decorators Explained: Syntax and Use Cases

TypeScript decorators attach reusable behavior to classes and members with an @ syntax. How class, method, and field decorators work, with real examples.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

What Is Shadow DOM? Encapsulated Web Components

Shadow DOM attaches an isolated DOM tree to an element so a component's styles and markup can't leak in or out. Here's how it actually works.

#Web Development #JavaScript #CSS
Takina Takina · · 4 min read

npm vs pnpm vs Yarn: Which Package Manager to Use

npm, pnpm, and Yarn all install the same packages but differ in speed, disk usage, and monorepo support. Here's how to pick the right one.

#JavaScript #Web Development #Developer Tools
Takina Takina · · 4 min read

AbortController: Canceling Fetch Requests in JS

AbortController lets JavaScript cancel an in-flight fetch or async task on demand, preventing stale responses from overwriting newer state.

#JavaScript #Web Development #Performance
Takina Takina · · 5 min read

ESM vs CommonJS: JavaScript Modules Explained

ESM and CommonJS are JavaScript's two module systems — how import/export differs from require/module.exports, and when each one is used.

#JavaScript #Node.js #Web Development
Chisato Chisato · · 3 min read

What Is XSS? Cross-Site Scripting Explained

Cross-site scripting (XSS) injects malicious scripts into pages other users view. How stored, reflected, and DOM-based XSS work, and how to prevent them.

#Security #Web Development #JavaScript
Takina Takina · · 4 min read

Optimistic UI Updates Explained

Optimistic UI updates the interface immediately, before the server confirms a change, then rolls back if the request fails — for apps that feel instant.

#Web Development #Frontend #JavaScript
Takina Takina · · 4 min read

JavaScript Generators and Iterators, Explained

Generators are functions that pause and resume with the yield keyword, producing values lazily on demand instead of computing them all at once.

#JavaScript #Web Development #Frontend
The Lycoris Team The Lycoris Team · · 4 min read

What Is Memoization? Caching Function Results Explained

Memoization caches a function's return value by its input, skipping recomputation on repeat calls. How it works and when it actually helps.

#Computer Science #JavaScript #Software Engineering
Takina Takina · · 4 min read

TypeScript Generics Explained

TypeScript generics let functions and types work with any type while preserving the specific type used at each call site, avoiding both duplication and any.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

Async/Await vs Promises in JavaScript

Async/await is syntactic sugar over Promises, not a different mechanism. How each looks in practice, and when to still reach for raw Promises.

#JavaScript #Web Development #Async
Takina Takina · · 4 min read

What Is the Virtual DOM? How React Updates the UI

The virtual DOM is an in-memory copy of the UI tree that frameworks diff against the previous version to batch and minimize real DOM updates.

#JavaScript #Web Development #Frontend
Chisato Chisato · · 4 min read

What Is a Content Security Policy (CSP)?

A Content Security Policy is an HTTP header that restricts what scripts and resources a page can load, blocking most XSS attacks by default.

#Security #Web Development #JavaScript
Takina Takina · · 4 min read

JavaScript Proxy Objects Explained

A JavaScript Proxy wraps an object and intercepts operations like get and set through traps. How traps work, with practical examples and Reflect.

#JavaScript #Web Development
Takina Takina · · 4 min read

What Is a Web Worker? Running JS Off the Main Thread

A web worker runs JavaScript on a background thread, freeing the main thread to keep the UI responsive. How workers communicate and when to use one.

#JavaScript #Web Development #Performance
Takina Takina · · 5 min read

Svelte vs React: Which Should You Choose?

Svelte compiles away at build time; React ships a runtime and virtual DOM. Bundle size, reactivity model, and ecosystem tradeoffs compared.

#JavaScript #Frameworks #Web Development
Takina Takina · · 5 min read

TypeScript 7.0 Released: Go Rewrite, 10x Faster

Microsoft shipped TypeScript 7.0 with a Go-native compiler that's roughly 10x faster than 6.0. What changed, what breaks, and how to upgrade.

#TypeScript #JavaScript #Developer Tools
Takina Takina · · 5 min read

JavaScript Closures Explained, With Examples

A JavaScript closure is a function that remembers the variables from where it was defined. How closures work, why they matter, and the classic loop gotcha.

#JavaScript #Web Development #Frontend
Takina Takina · · 5 min read

Debounce vs Throttle: Rate-Limiting Events in JS

Debounce and throttle both tame rapid-fire events, but differently — debounce waits for a pause, throttle enforces a steady rate. When to use each.

#JavaScript #Frontend #Performance
Takina Takina · · 4 min read

What Is WebRTC? Real-Time Audio, Video, and Data

WebRTC lets browsers stream audio, video, and data directly between peers — no plugins. How getUserMedia, RTCPeerConnection, and ICE/STUN/TURN fit together.

#Web Development #Networking #JavaScript
Takina Takina · · 4 min read

What Is a WebSocket? Real-Time, Two-Way Web Communication

A WebSocket is a protocol for full-duplex, persistent communication over a single TCP connection. Learn how it works, when to use it, and what the alternatives are.

#Web Development #JavaScript #Networking
Takina Takina · · 4 min read

What Is CORS? Cross-Origin Requests, Explained

CORS lets a server opt in to cross-origin browser requests, relaxing the same-origin policy in a controlled way. Why it exists and how to fix CORS errors.

#Web Development #Security #JavaScript
Takina Takina · · 4 min read

Understanding the JavaScript Event Loop

JavaScript is single-threaded, yet pages stay responsive. A clear tour of the call stack, task queue, and microtasks — with examples you can run.

#JavaScript #Web Development #Async
Takina Takina · · 5 min read

Signals: The Reactivity Model Taking Over Frontends

Signals offer fine-grained reactivity with automatic dependency tracking — and nearly every major framework has adopted them. Here's why the model won.

#JavaScript #Web Development #Frameworks
Takina Takina · · 3 min read

What Is JavaScript? The Programming Language of the Web

JavaScript is the programming language that makes web pages interactive. Learn how it works alongside HTML and CSS, and why it runs nearly everywhere.

#JavaScript #Web Development #Programming Languages
Takina Takina · · 5 min read

React Server Components, Explained Without the Hype

React Server Components render exclusively on the server and stream a serialized result — no client JS shipped for that component. Here's what that actually means.

#React #Web Development #JavaScript
Takina Takina · · 3 min read

Getting Started with TypeScript: A Practical Guide

TypeScript adds a safety net to JavaScript without slowing you down. Here's how to set it up, the handful of concepts that matter, and how to adopt it gradually.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

What Are Server-Sent Events (SSE)?

Server-Sent Events stream real-time updates over a single HTTP connection. How SSE works, when to use it, and how it compares to WebSockets.

#Web Development #JavaScript #Performance

← All topics