ByteDance frontend engineer interviews emphasise JavaScript, DOM manipulation, CSS, accessibility, browser APIs, and UI component architecture.
No verified questions yet for ByteDance.
javascript
class ClientRouter {
addRoute(path: string, component: Function): void;
navigate(path: string): void;
getCurrentRoute(): string;
}
router.addRoute('/home', HomeComponent); router.navigate('/home');HomeComponent.Constraints:path should be unique for every route.javascript
class VirtualDOM {
createElement(type: string, props: object, ...children: any[]): VNode;
render(vnode: VNode, container: DOMNode): void;
update(oldVNode: VNode, newVNode: VNode): void;
}
const vnode = virtualDOM.createElement('div', {id: 'container'}, 'Hello');
virtualDOM.render(vnode, document.getElementById('app'));props object can contain various properties, including event listeners.children can be a mix of strings and VNode objects.Sign up for free to access walkthroughs, AI-generated questions, and more.
Get Started Free