Skip to content

Search

Articles, tools, solutions and knowledge base guides

Start typing to search across articles, tools and apps.

Frontend

Reference material for engineers and product teams. Company updates live on the Blog.

52 articles in the Frontend category

Latest articles

CSS Grid: A Practical Guide with Examples

CSS Grid lets elements share column and row tracks. Setting `display: grid` is only the beginning: understanding track sizing, placement and content constraints makes layouts predictable. This guide uses a product catalog, an application shell and pricing cards to explain the mechanisms.

CSS Grid vs Flexbox: Differences, Examples and When to Use Each

CSS Grid and Flexbox can produce similar interfaces but resolve the size and position of items differently. The distinction becomes important when labels vary in length, a final card row is incomplete, URLs are long or a component is placed in a narrow container. This guide uses concrete layouts to explain which behavior to choose and why.

CSS Position: Relative, Absolute, Fixed and Sticky Explained

A product badge appears in the corner of the page, a fixed button scrolls with a panel, or a sticky heading never sticks. These bugs often come from confusing three separate mechanisms: normal flow, the containing block that supplies coordinates, and stacking contexts. CSS positioning complements Grid and Flexbox rather than replacing them.

CSS Units: px vs rem vs em vs vh vs vw Explained

A CSS unit defines what a dimension depends on. The same numeric value in rem, em or vw can produce very different lengths. In a production interface, choose units based on what should scale: text, a component, available space or the viewport. Examples assume horizontal writing unless noted otherwise.

JavaScript Array Methods: map, filter, reduce and Beyond

Array methods are essential for transforming API data, filtering products, calculating cart totals and updating application state without managing indexes manually. They are not interchangeable: map transforms existing entries, filter selects entries, and reduce produces an aggregate. The right choice depends on the expected result, processing cost and whether the original array may change. The standalone examples below also show when a straightforward loop is preferable.

JavaScript Closures: Lexical Scope, Practical Examples and Pitfalls

Why can a function still read variables from a factory that has already returned? Why do callbacks created in a loop sometimes return the same number? Closures explain both behaviors. They underpin function factories, event subscriptions and React patterns. Understanding them makes it possible to predict behavior rather than guess at fixes.

JavaScript Event Loop: Call Stack, Tasks and Microtasks

Why does a zero-delay timer run after a promise? Why does a loading indicator fail to appear even though the DOM was updated? Both questions concern the execution model and the browser's scheduling decisions. This guide focuses on browser JavaScript and explains how to predict execution order and keep interfaces responsive.

JavaScript Promises and async/await: A Practical Guide

Fetching data, saving forms and live search require coordinating work whose results are not immediately available. A Promise represents an eventual outcome, while async/await expresses dependencies without deeply nested callbacks. The difficult parts are deciding which tasks can overlap, handling failures and preventing outdated responses from changing the interface.

localStorage vs sessionStorage vs Cookies vs IndexedDB: Differences and Use Cases

Browser storage is not a single interchangeable resource. A theme preference, a form in progress, a session identifier and an offline document database have different requirements. The right choice depends on access scope, lifetime, security and data structure. These examples also handle unavailable storage and failed writes rather than assuming that browser data will always survive.