Web developer interview questions.
Web developer interviews test the platform underneath every framework: how the browser turns HTML and CSS into a page, how the DOM and events work, and what happens on the network between a click and a response. These questions cover HTML and CSS basics, DOM work in plain JavaScript, and browser, networking and performance problems.
12 of these questions have free answers; the rest are in Pro. Updated .
189
questions
- Easy
- 125
- Medium
- 64
What interviewers look for
- You can explain what happens between typing a URL and seeing the page.
- You work with the DOM and events directly, without a framework.
- You know how HTTP caching, cookies, storage and CORS affect a real app.
- You can find and fix a slow page: large assets, render-blocking resources and layout shifts.
Concept questions, answered
The definitions and comparisons interviewers open with. Free to read, each with a full answer and examples.
What happens when you type a URL into the browser?
The browser parses the URL, finds the server's IP address through DNS, opens a TCP and TLS connection (or QUIC for HTTP/3), sends an HTTP request, receives HTML, parses it into the DOM, fetches CSS, JavaScript and images, builds the render tree, lays it out, paints pixels and runs scripts. Each step can be skipped by caching or sped up.
What is semantic HTML, and why does it matter?
Semantic HTML means choosing elements for what the content is, not how it looks: <button> for actions, <nav> for navigation, <h2> for a heading. Browsers, screen readers and search engines read those elements to understand the page. You get keyboard support, accessible names and a usable document outline without writing extra JavaScript or ARIA.
What is the CSS box model?
The CSS box model says every element is a rectangular box made of four layers: content, padding, border and margin, from the inside out. The width and height you set apply to the content box by default, so padding and border make the element larger. Setting box-sizing: border-box makes width include padding and border instead.
What is the DOM?
The DOM (Document Object Model) is the browser's in-memory tree of objects that represents an HTML page. JavaScript uses it to read, create, change and remove elements, attributes, text and styles, and to react to events. It is not the HTML source: the DOM is what the browser builds from the source, and it changes as scripts run.
localStorage vs sessionStorage vs cookies
localStorage keeps string data in the browser until you delete it, sessionStorage keeps it only for one tab's session, and cookies are small values the browser sends to the server with matching requests. Use storage for client-only data, and cookies when the server needs the value, especially for sessions with the right flags.
What is CORS, and how does it work?
CORS (Cross-Origin Resource Sharing) is a browser mechanism that lets a server say which other origins may read its responses. By default the same-origin policy stops a page on one origin from reading a response from another. The server opts in with headers like Access-Control-Allow-Origin, and the browser enforces the result. It is a relaxation of a rule, not a security feature that protects the server.
What is the same-origin policy?
The same-origin policy is a browser security rule that stops a script on one origin from reading data from another origin. An origin is the combination of scheme, host and port. It keeps a malicious site from using your logged-in session to read your email or bank pages. Servers and tools like curl are not bound by it.
script async vs defer: what is the difference?
Both async and defer make a classic script download in parallel with HTML parsing instead of blocking it. The difference is when the code runs. A defer script runs after the document is parsed, in the order it appears. An async script runs as soon as it finishes downloading, in any order, possibly mid-parse.
HTTP/1.1 vs HTTP/2 vs HTTP/3: what changed?
HTTP/1.1 sends one request at a time per connection, so browsers open several. HTTP/2 sends many requests at once over a single TCP connection. HTTP/3 does the same over QUIC, which runs on UDP, so one lost packet no longer stalls every request. The meaning of HTTP stays the same: methods, headers and status codes do not change.
What is the critical rendering path?
The critical rendering path is the sequence of steps the browser must complete before it can show the first pixels: build the DOM from HTML, build the CSSOM from CSS, combine them into a render tree, run layout, paint, and composite. Anything that blocks or lengthens those steps delays first paint, so optimising the path means shortening or unblocking them.
Cache-Control: no-cache vs no-store vs max-age=0
no-cache lets caches store the response but requires them to check with the server before every reuse. no-store forbids storing it anywhere. max-age=0 makes it stale immediately, so caches normally revalidate too, but unlike no-cache it still allows stale reuse in some cases, such as when the server is unreachable. Use no-store for sensitive data and no-cache for content that must always be current.
How do you make a website accessible?
To make a website accessible, start with semantic HTML, make every control work with the keyboard, label inputs and images, keep colour contrast high, manage focus when content changes, and respect user preferences like reduced motion. Then test with automated tools, the keyboard alone and a screen reader. Most of the work is not adding code but not breaking what HTML gives you.
Easy64
- Implement
getElementsByClassName()recursivelyImplement getElementsByClassName(root, classNames) without using the built-in getElementsByClassName or… - Implement event delegation for a dynamic listFreeA to-do list adds and removes <li class="item"> elements all the time. Attaching a click listener to every item is slow…
- Build a basic DOM traversal utility (DFS and BFS)Implement two functions that walk the element tree under root (including root itself) and return the elements as an…
- Implement a simple tab switcher with HTML, CSS and JavaScriptImplement createTabs(container, tabs). tabs is an array of { label, content }. Render an accessible tab switcher into…
- Implement a countdown timer with pause, resume and resetImplement two functions:
- Build an accessible star-rating widget with keyboard support and a read-only modeFreeWithout a framework, write createStarRating(container, options) that renders a star rating people can use with a mouse,…
- Find the stacking context that traps an element's
z-index"I set z-index: 9999 on the dropdown, but it still renders under the page content." This happens when an ancestor… - Put the steps from typing a URL to first paint in order, and mark what blocks renderingFree"What happens when you type a URL and press Enter?" is asked in almost every frontend loop. Answer it in two parts.
- Predict which color wins: specificity,
!importantand cascade layersFreeEvery case below styles the same markup, unless a case says otherwise: - Fix a div-soup form so it works with a keyboard and screen readersThe sign-up form in the starter code looks fine with a mouse, but it fails an accessibility audit: there is no <form>,…
- Build a holy-grail layout with CSS Grid that stacks in narrow containersWrite the CSS in LAYOUT_CSS for this markup (the tests use exactly this markup, and set the size of .page themselves):
- Check whether two DOM trees are identicalWrite identicalDOMTrees(a, b), which returns true when two DOM nodes describe exactly the same tree.
- Find the corresponding node in an identical DOM treeYou have two DOM trees with exactly the same structure, for example a live page and a copy rendered into a hidden…
- Build a table of contents from a page's headingsDocs sites show a table of contents built from the article's headings. Write tableOfContents(root), which reads the…
- Serialize a DOM-like tree to indented HTMLA tree of plain objects describes some HTML. Each node is either a string (text) or an element:
- Build a traffic light that cycles through its states with configurable timingsWithout a framework, write createTrafficLight(container, config) that renders a traffic light and cycles it…
- Implement
getElementsByStyle()using computed stylesWrite getElementsByStyle(root, property, value), which returns every element inside root (not root itself) whose… - Build a chessboard that highlights both diagonals of the hovered squareA favourite machine-coding warm-up: without a framework, write createChessboard(container, size = 8).
- Implement
getElementsByTagNameHierarchy()for descendant selectorsdocument.querySelectorAll("div p span") finds <span> elements inside a <p> inside a <div>. Implement that matching… - Build a chainable, jQuery-style DOM wrapperjQuery's API is gone from most codebases, but its design (one object wrapping many elements, with chainable methods) is…
- Build a seven-segment digital clock that ticks on the secondBuild a digital clock whose digits are drawn with seven segments, like an alarm clock.
- Build an accessible password-strength meterSign-up forms show how strong a password is and which rules it meets. Build it in two parts, without a framework.
- Build a stopwatch with laps that never driftsThe stopwatch is a common machine-coding warm-up, and most answers drift because they count setInterval ticks. Build…
- Predict event propagation order: capturing, target, bubbling and
stopPropagation"Explain event bubbling and capturing" is one of the most searched DOM interview questions, and interviewers check it… - Center an element horizontally and vertically five ways"How do I center a div?" is the most famous CSS question there is, and interviewers ask for several ways and when each…
- Predict box model sizes:
box-sizing, padding, borders and margin collapse"Explain the CSS box model" is a standard interview question; the follow-up is always "so how wide is this box?". Each… - Predict flexbox item sizes from
flex-grow,flex-shrinkandflex-basis"What does flex: 1 mean?" is a frequent CSS interview question, and the real test is computing the sizes. Each case is a… - Predict CSS position results:
relative,absolute,fixedandsticky"Explain the CSS position property" is a common interview question; the follow-up is "so where does this box end up?".… - Predict CSS unit sizes:
em,rem, percentages,line-height,calc()andclamp()"What is the difference between em and rem?" is one of the most searched CSS interview questions, and the follow-up is… - Predict
display: noneversusvisibility: hiddenversusopacity: 0: layout, clicks, focus and children"What is the difference between display: none and visibility: hidden?" is asked in nearly every CSS round, often with… - Predict which elements CSS selectors match:
nth-child,nth-of-type,:not,:hasand sibling combinatorsPseudo-class questions ("what is the difference between :nth-child and :nth-of-type?") are among the most searched CSS… - Get the unique tag names and the height of a DOM tree, recursively and iterativelyWalking the DOM is a common warm-up in frontend rounds, and the follow-up is almost always "now do it without…
- Predict events across a shadow DOM boundary: retargeting,
composedandcomposedPath()Web components hide their markup in a shadow root, and events that cross that boundary behave differently from the… - Predict
min-content,max-contentandfit-contentwidths in labels, buttons and grid tracksIntrinsic sizing keywords come up when an interviewer asks "how do you make a label only as wide as its text?" or "why… - List a page's landmarks with
getLandmarks(): implicit roles, accessible names and document orderScreen-reader users jump around a page by landmarks: the banner, the navigation, the main content, and so on. An… - Audit small touch targets with
auditTargets(): the WCAG 2.5.8 size and spacing ruleWCAG 2.2 success criterion 2.5.8 (Target Size, Minimum) says a pointer target should be at least 24 by 24 CSS pixels,… - Find reading-order mismatches with
findOrderMismatches(): CSSorder,row-reverseand grid placementCSS can show elements in a different order from the DOM: flex-direction: row-reverse, the order property and explicit… - Choose forced-colors and print styles for a segmented filter and a multi-page invoiceTwo kinds of styling are easy to forget and come up in accessibility and CSS interviews: forced colors mode (Windows…
- Plan an accessibility audit: what automated scanners catch and what needs manual testing"Our page passes axe with zero violations, so it is accessible, right?" Interviewers ask this to see whether you know…
- Generate a table numbered in column snake order with
generateTable(rows, columns)A short DOM warm-up: build a table with plain DOM APIs, no innerHTML and no framework. The numbering is what makes it a… - Open a
<dialog>withcommandforandcommand, and add a fallback for browsers without invoker commandsInvoker commands let a button control another element with two attributes and no JavaScript: - Write jQuery-style
css()getters and setters and acontains()that walksparentNodeTwo DOM warm-ups that test whether you know the difference between inline and computed styles, and how the DOM tree is… - Implement
serializeForm(): nested names, arrays, checkbox groups, radios and multi-selectsnew FormData(form) gives you flat name/value pairs as strings, and it drops unchecked checkboxes completely. A JSON API… - Build an infinite news ticker that pauses on hover and focus and respects reduced motionNews and stock sites show a strip of headlines that scrolls sideways forever. Build it without a framework.
- Build a back-to-top button with a scroll threshold and reduced-motion-aware scrollingLong pages often show a "Back to top" button once the reader has scrolled down. It looks trivial, but interviewers use…
- Build a read-more toggle that clamps text to a few lines and appears only when the text overflowsProduct descriptions, reviews and comments are often cut to a few lines with a "Read more" button. The common bug is a…
- Build a typing speed test with WPM, accuracy and per-character highlightingA typing test shows a sentence, colours each character green or red as you type, and reports your speed at the end.…
- Write
closest()andmatches()polyfills that work in detached trees and shadow rootselement.matches(selector) and element.closest(selector) are the backbone of event delegation… - Build a header that hides on scroll down and reappears on scroll upMobile sites often slide the sticky header away while you read down the page and bring it back as soon as you scroll up.…
- Build an HSL colour picker with sliders, a hex output and a contrast previewDesign tools and theme editors let you pick a colour with hue, saturation and lightness sliders and show whether text on…
- Validate a form with the Constraint Validation API:
setCustomValidity, custom messages andaria-invalidHTML already knows how to validate required, type="email", min, max and pattern. The browser's bubbles cannot be styled… - Re-implement
classList.,contains add,removeandtoggleby parsing the class attribute"Check whether an element has a class, without classList" has been reported in public interview write-ups, followed by… - Build a modal dialog in plain JavaScript: Escape, backdrop clicks, focus return and scroll lock"Build a dialog component without a framework" has been reported in public interview write-ups. The markup is easy; the…
- Render a box layout from an API response: pixel and percentage sizes, nesting and invalid boxesA task reported in public interview write-ups: an API describes boxes, and you render a layout where each box has…
- Build a scroll progress bar: one update per frame, a transform-based fill and progressbar semanticsArticles often show a thin bar at the top that fills as you scroll. Building one at the end of a UI round has been…
- Build a three-per-row image grid that keeps every cell the same size whatever the image dimensions"Lay out images three per row" has been reported in public interview write-ups, with the follow-up "and what if the…
- Build colour controls: RGBY step buttons and swatches that blend into a square's backgroundTwo related vanilla JavaScript tasks have been reported in public interview write-ups: buttons that raise or lower one…
- Find a string that spans several text nodes and return the matching nodes and offsetsFind-in-page has to match text that the markup splits up: in <p>Hello <b>The</b>re</p>, the words "Hello There" live in…
- Compute element positions: page offsets, offsets inside a scrolled container, visible ratio and scroll-into-viewA browser-API round about finding elements and working out where they are on the page has been reported in public…
- Implement DOMStore, a map keyed by DOM nodes, without Map, WeakMap or SetBefore Map existed, libraries that stored data per element (event handlers, cached measurements, component instances)…
- Mark up a recipe page with semantic HTML onlyFreeScreen readers, search engines and reader modes understand a page through its elements, not its classes. A recipe built…
- Truncate text with an ellipsis on one line and clamp it to three linesFreeCards in a feed have a fixed size, but titles and excerpts do not. The usual fix is to cut the title to one line with…
- Write mobile-first media queries for a product listing page: two, three and four columns and a filter sidebarFreeA fashion store's product listing page must work from a 320px phone to a desktop. Phones show two products per row and…
- Restyle a card list with CSS only, without editing the HTML or the existing stylesheetFreeA restaurant list renders the markup below with an existing stylesheet. You may not change either one: your only tool is…
Showing 64 of 125 easy questions. Browse the rest in the question bank
Medium60
- Implement a fetch wrapper with timeout and
AbortControllerFreefetch has no timeout: on a bad network a request can hang for minutes. Implement fetchWithTimeout(url, { timeout = 8000,… - Implement request and response interceptors similar to AxiosImplement createHttpClient({ baseURL = "", fetch: fetchImpl = window.fetch }), a small Axios-style client on top of…
- Implement retry with exponential backoff and jitterFreeImplement two functions:
- Implement a basic client-side router using the History APIImplement a small single-page-app router.
- Implement synchronization between browser tabs using
BroadcastChannelA user opens your app in three tabs, changes the theme in one and logs out in another. Every tab should reflect both… - Implement browser storage with TTL and schema-version migrationApps that store data in localStorage eventually change the shape of that data, and stale entries pile up forever.…
- Build a lazy image loader using
IntersectionObserverWithout a framework, implement lazyLoadImages(root = document, { rootMargin = "200px", loadedClass = "loaded" } = {}).… - Implement an accessible focus trap for a dialogWhen a modal dialog is open, keyboard focus must stay inside it. Implement createFocusTrap(container, { initialFocus,…
- Implement an analytics SDK with event batching and
sendBeaconfallbackFreeImplement createAnalytics({ endpoint, batchSize = 10, flushInterval = 5000, maxQueue = 500, transport, target = window,… - Implement a Web Worker for CPU-intensive computationHeavy computation on the main thread freezes scrolling, typing and animations. Implement createWorkerTask(fn), which…
- Implement a simple Service Worker caching strategyA Service Worker can answer requests from a cache. Implement the three classic strategies as plain functions, so they…
- Implement a responsive masonry layout using measured item heightsA Pinterest-style masonry grid places each item in the shortest column, so columns end up roughly equal in height even…
- Implement a DOM-based text highlighter that preserves existing markupelement.innerHTML = html.replace(query, "<mark>…</mark>") is the classic wrong answer: it can break tags and attributes,…
- Build a lightweight client-side search index for 10,000 recordsFiltering 10,000 records with includes on every keystroke is slow and gives poor results. Build a small search engine:
- Implement a performance monitor measuring Web Vitals and reporting metricsMeasure Core Web Vitals from real users. Implement:
- Batch DOM reads and writes to fix layout thrashingThis code makes every card as tall as the tallest one, and freezes the page with 500 cards:
- Split a long task into chunks that yield to the browser to keep INP lowFiltering and formatting 50,000 rows takes 400 ms on a mid-range phone. While it runs, taps and key presses wait, and…
- Diagnose a failing CORS preflight and write the server's CORS handlerThe app on https://app.example.com calls the API on another origin:
- Choose
Cache-Controlheaders for hashed assets, HTML and API responsesAfter a deploy, some users see a blank page: their browser cached the old index.html, which points at JavaScript files… - Add dark mode with design tokens and no flash on loadUsers who chose dark mode see a white flash on every page load, the theme ignores the operating system setting, and…
- Prefetch route code on intent without wasting bandwidthThe app splits each route into its own chunk, so the first click on a link waits for the chunk to download. Prefetching…
- Protect a web app from CSRF with signed tokens, Origin checks and SameSite cookies"How do you prevent CSRF?" is one of the most common frontend security interview questions. Cookie-based sessions are…
- Assemble streamed binary chunks without quadratic copyingTo show a download progress bar, an app reads response.body with getReader() instead of calling response.arrayBuffer().…
- Cache
Intl.instances for a currency grid and format minor units correctlyA trading grid shows 50 columns × 2,000 rows of prices. The profiler shows most of each render inside this cell…NumberFormat - Build storage that survives private browsing and quota errorsA checkout page saved the cart with localStorage.setItem("cart", json) before redirecting to the payment step. For most…
- Triage a crash that only happens in production for one customer"Tell me about a bug you could not reproduce" is a common behavioural-technical question, and the follow-up is always…
- Survive the back/forward cache: write
createPageLifecyclewithpagehide,pageshowandvisibilitychangeWhen a user presses Back, the browser can restore the previous page instantly from the back/forward cache (bfcache): a… - Decide which HTTP/1 optimizations still help under HTTP/2 and HTTP/3, and model head-of-line blockingMany performance checklists were written for HTTP/1.1. Interviewers ask which of those tricks still make sense now that…
- Set cookies for an embedded checkout iframe: SameSite, Partitioned and fallbacks when third-party cookies are blockedcheckout.example runs a payment form that merchants embed in an <iframe> on their own sites, and it also has its own…
- Choose gzip, Brotli, zstd or no compression by total time: transfer, decompression and parse"Brotli gives the smallest file, so always use Brotli" is a common answer, and an incomplete one. What the user waits…
- Choose cheap selectors and CSS containment:
:has(),containandcontent-visibility: auto"The page janks when I toggle dark mode" and "how would you render a 2,000-item feed faster without virtualising it?"… - Load runtime config from
/config.instead of build-time env varsYour team wants to build the frontend once and promote the same bundle from staging to production. Today the code reads…json - Make visual and accessibility regression tests stable: fix noisy screenshots and pick the right test layerYour team added screenshot tests and accessibility checks to CI. Two weeks later, people re-run failed jobs until they…
- Force cross-origin downloads with Content-Disposition and delegate camera and microphone to iframesTwo bugs from the same product. First: the "Download invoice" link <a href="https://cdn.files.example/inv/42.pdf"…
- Fix an IndexedDB transaction that auto-commits during an
await fetch()An offline product catalogue stores products in IndexedDB. This code refreshes prices from the server, and in production… - Choose long polling, Server-Sent Events or WebSocket for six real-time features"Would you use WebSocket or SSE here?" comes up in most real-time interview questions, and "WebSocket for everything" is…
- Make a modal animation run at 60 fps: layout, paint and composite,
will-changeand reduced motionThe modal on a product page opens with a visible stutter on mid-range phones. The performance panel shows long "Layout"… - Simulate how the browser picks an image from
srcsetandsizes: width and density descriptors and DPR"Why is my phone downloading the 1600px image?" is a real performance bug, and answering it means knowing how srcset and… - Load web fonts with the FontFace API: a timeout, a fallback and a single class swapWeb fonts cause two visible problems: invisible text while they download, and a layout shift when they swap in. A common…
- Choose resource hints for a landing page: preload, preconnect, prefetch, modulepreload and
fetchpriorityResource hints are cheap to add and easy to get wrong: a wrong preload wastes bandwidth, steals priority from the LCP… - Compress an image in the browser before upload: fit a maximum size, then step down the qualityA phone photo is often 4000×3000 pixels and 3–8 MB. Uploading it over a mobile network to show a 1200px avatar or…
- Write a User Timing helper:
markandmeasurewrappers, timed functions and a reportWeb Vitals tell you that a page is slow; custom timings tell you which part of your code is. The User Timing API… - Restore scroll positions in a single-page app: save per history entry, restore on Back, reset on new navigationIn a multi-page site, pressing Back returns you to where you were in the list. In many single-page apps it does not: the…
- Compute INP from Event Timing entries: group by
interactionId, take the 98th percentile and split the phasesInteraction to Next Paint (INP) is the Core Web Vital for responsiveness. Browsers do not hand you an INP number; they… - Put the steps from clicking Post to a saved, visible comment in order, and match each failure to its fix"Walk me through what happens, in order, from the moment the user clicks Post under an issue until the comment is saved…
- Show download progress for a very large file with ReadableStream: totals, throttling and abortawait response.blob() gives no feedback: for a 400 MB export the user stares at a frozen button. fetch has no progress…
- Evaluate a Content-Security-Policy:
'self', nonces, hashes, wildcards,default-srcfallback and'strict-dynamic'A Content-Security-Policy header tells the browser which scripts, styles, images and connections a page may use, and it… - Generate Speculation Rules: choose prefetch or prerender and eagerness from navigation dataThe Speculation Rules API lets a page tell the browser which links to prefetch (download the next document) or prerender…
- Build a request waterfall from Resource Timing: connection phases and the chain that delays the LCP imageDevTools draws a waterfall for your machine. To see what real users wait for, you collect PerformanceResourceTiming…
- Analyse a performance trace: find long tasks, compute Total Blocking Time and attribute it to scripts"The page feels sluggish while loading" becomes actionable once you know which script keeps the main thread busy.…
- Auto-initialise widgets added to the page with MutationObserverA server-rendered page, a CMS and a few scripts all insert HTML fragments at runtime. Some of those fragments contain…
- Log product impressions once scrolling stopsA shop's listing page reports which products customers actually looked at. Logging every product that touches the…
- Schedule callbacks with MessageChannel so they run before timersLong work on the main thread blocks clicks and typing. A scheduler breaks it into callbacks and runs them as separate…
- Build a web component with shadow DOM, slots and attribute and property syncA design system ships an alert that must work in plain HTML, in React and in a CMS, so it is built as a custom element.…
- Block analytics tags until the user gives cookie consentPrivacy law in many countries says analytics and marketing tags may not run, or set cookies, before the user agrees. The…
- Validate redirect targets to stop open redirectsAfter login, a site sends the user back to where they came from: /login?next=/orders/42. If next is used as is, an…
- Build an in-memory
Storagethat follows the Web Storage rules: string coercion,nullfor missing keys,key(), quota errors and property accesslocalStorage and sessionStorage look like a simple map of strings, but they have rules that surprise people: everything… - Choose a loading plan for slow networks: image quality, prefetching, autoplay and timeouts from network hintsOn a slow or expensive connection the same page should load less: smaller and more compressed images, no prefetching, no…
- Work out when scripts run: classic,
async,defer, module and inline scripts against the parserFree"Where should the <script> tag go, and what do async and defer change?" is a standard question. Answer it precisely by… - Build an MSW-style request mocker: path params,
server.overrides,use oncehandlers and unhandled requestsMocking fetch with jest.fn().mockResolvedValue(...) couples every test to how the code calls fetch. Mock Service Worker…
Showing 60 of 64 medium questions. Browse the rest in the question bank
Practise with tests and full answers.
Every question has a runnable editor, tests and a step-by-step solution. Passes from ₹149, paid once; nothing renews.
Frequently asked
What are the most common web developer interview questions?
What happens when you type a URL into the browser, semantic HTML, the CSS box model and specificity, flexbox and grid, event bubbling and delegation, localStorage versus sessionStorage versus cookies, CORS and the same-origin policy, HTTP caching, and how to make a page load faster.
What do freshers get asked in a web developer interview?
HTML tags and forms, CSS selectors and layout, JavaScript basics such as var, let and const, functions and arrays, DOM manipulation and events, and simple questions about HTTP methods and status codes. Expect a small task such as building a form or a list in plain JavaScript.
Do web developer interviews include backend questions?
For full stack roles, yes: REST APIs, databases and authentication. For frontend-focused web roles, expect the browser side of the same topics: calling APIs with fetch, handling errors, storing tokens safely and understanding CORS.