Netflix frontend engineer interviews emphasise JavaScript, DOM manipulation, CSS, accessibility, browser APIs, and UI component architecture.
No verified questions yet for Netflix.
WatchList that allows users to manage their watchlist with the following features:add(contentId: string): Adds a content ID to the watchlist.remove(contentId: string): Removes a content ID from the watchlist.getAll() -> List[string]: Returns a list of all content IDs in the watchlist.contains(contentId: string) -> bool: Checks if a content ID is present in the watchlist.Example 1:watchlist = new WatchList(); watchlist.add('content123'); watchlist.getAll()['content123']contentId strings are unique and valid.Router to manage routes and navigation within the application, with the following functionality:addRoute(path: string, component: Function) -> void: Adds a new route with an associated component.navigate(path: string) -> void: Navigates to the specified route, rendering the associated component.getCurrentRoute() -> string: Returns the current route.Example 1:router = new Router(); router.addRoute('/home', Home); router.addRoute('/about', About); router.navigate('/home'); router.getCurrentRoute()'/home'Sign up for free to access walkthroughs, AI-generated questions, and more.
Get Started Free