Coinbase frontend engineer interviews emphasise JavaScript, DOM manipulation, CSS, accessibility, browser APIs, and UI component architecture.
No verified questions yet for Coinbase.
ClientRouter that manages different routes in a single-page application. Users will navigate between different components based on the URL without refreshing the page.addRoute(path: string, component: Function): void — Adds a new route along with its corresponding component.navigate(path: string): void — Navigates to the given path and renders the associated component.getCurrentPath(): string — Returns the current path the user is on.Example 1:const router = new ClientRouter(); router.addRoute('/home', HomeComponent); router.navigate('/home');Rendered HomeComponent/home, the associated component is rendered.Example 2:router.addRoute('/about', AboutComponent); router.navigate('/about');Rendered AboutComponentConstraints:VirtualDOM that can create, update, and render a lightweight representation of a real DOM. This is vital to reduce expensive layout recalculations and improve responsiveness.createElement(tag: string, props: Object, children: Array<VirtualNode>): VirtualNode — Create a new Virtual Node.update(oldNode: VirtualNode, newNode: VirtualNode): VirtualNode — Update an old node to match a new one and return the updated Virtual Node.render(node: VirtualNode): HTMLElement — Convert a Virtual Node back into a real DOM HTMLElement.Example 1:const vNode = virtualDOM.createElement('div', { className: 'container' }, []);Virtual Node createdExample 2:virtualDOM.update(oldVNode, newVNode);Updated Virtual NodeConstraints:Sign up for free to access walkthroughs, AI-generated questions, and more.
Get Started Free