Frontend
Фронтенд
It's the part of an application people interact with, including its screens, controls, and responses to their actions. On the web, the browser displays that interface.
What the frontend does
Think of a parcel tracking page. The input field, the tracking history, and the message you see when a number isn't recognized are all part of the frontend. Its job is not just to lay out a screen. It also handles what happens when someone submits a form, follows a link, or tries again after a request fails.
How a web frontend works
HTML gives the page structure and meaning: a heading, a link, and a button each have a different role. The browser parses that markup into the Document Object Model (DOM), a tree that code can read and change. CSS controls presentation, including how the layout adapts to different screen sizes. JavaScript can respond to events, request data, and update the page without a full reload. A page with mostly static content may need little or no JavaScript; frontend development doesn't require a framework.
Larger interfaces are often split into components, such as a search field or a results panel. A component may render differently depending on its state: whether a request is pending, which result is selected, or whether an error occurred. State is the information the interface needs to decide what to show, not the rendered HTML itself.
Example: looking up a delivery
When a customer submits a tracking number, the frontend can check its format and show immediate feedback. If the format is valid, it sends the number to a backend API and shows a loading message. The backend looks up the shipment and responds. The frontend then turns that response into a timeline, a “No shipment found” message, or an error message. A timeout shouldn't look like a missing shipment: one means the lookup couldn't finish, while the other is a result the service returned.
Where the backend fits
The frontend presents information and handles interaction; the backend typically owns stored records, permission checks, and rules that must hold regardless of which client sends the request. Checking a field in the browser helps users fix mistakes sooner, but it doesn't replace server-side validation.
The boundary isn't simply “frontend runs in the browser, backend runs on a server.” With server-side rendering (SSR), frontend code generates the initial HTML on the server. The browser can display it before the application's client-side JavaScript is ready. In frameworks that use hydration, JavaScript connects interactive behavior to that existing markup.
What interviewers look for
A common exercise is to build a form or a list backed by an API. Explain what the user sees while waiting and what changes on success, on an empty response, and on failure. Be ready to explain why you chose a native button or form control and how you'd check that someone can complete the task using only a keyboard.