All jobs / Frontend / web developer / Tooling
Frontend / web developer interview question · 0–1 years
You need to ship a small button-style change. How do you use git?
The strongest answer
Branch from up-to-date main, keep the change focused, open a PR, and leave build output out of git
Why it works
A short-lived branch and a reviewable PR is how teams ship even tiny CSS.
What a good answer covers
- Small change, small branch.
- Update main, branch, commit the button CSS.
- Open a PR; let CI run.
- Don't commit dist/ or force-push shared branches.
Answers that fall short
- Close, but not the strongest: Commit on main locally and push
Local main works until you need review, CI, or a teammate's work. - Weak: Zip the project and email it
Zips have no history and no review. - Red flag: Force-push to main to 'keep history clean'
Force-pushing main is how you delete other people's work.
Who gets asked this
More Tooling questions
- CI installed different package versions than your laptop. Strongest fix?
- How do you use DevTools to find out where it fails?
- You need an API base URL in a Vite app without leaking a private key. What do you do?
- Fast Refresh resets a component's state on every edit. What usually caused it?
- A half-rolled feature is erroring in production. Strongest frontend move?
- What does a bundler such as Webpack or Vite’s production build actually do for you, and what breaks tree…
- Three product teams ship the same header with three bugs. How do you organize frontend platform work?
- A critical vulnerability is published in a package three levels down your dependency tree. The scanner is red…