Meta frontend engineer interviews emphasise JavaScript, DOM manipulation, CSS, accessibility, browser APIs, and UI component architecture.
No verified questions yet for Meta.
NotificationSystem that supports sending notifications and retrieving them by user.constructor() — initializes the notification system.sendNotification(userId: string, message: string): void — sends a notification to the specified user.getNotifications(userId: string): string[] — retrieves notifications for the specified user.Example 1:system = new NotificationSystem(); system.sendNotification('user1', 'Welcome!');system.getNotifications('user1') => ['Welcome!']Constraints:1 <= userId.length <= 10^51 <= message.length <= 500ImageCarousel that manages images and transitions between them.constructor(images: string[]) — initializes the carousel with the provided image URLs.next(): string — moves to the next image and returns the URL.prev(): string — moves to the previous image and returns the URL.getCurrentImage(): string — returns the URL of the current image.Example 1:carousel = new ImageCarousel(['img1.jpg', 'img2.jpg', 'img3.jpg'])carousel.getCurrentImage() => 'img1.jpg'carousel.next() => 'img2.jpg'Constraints:1 <= images.length <= 100Sign up for free to access walkthroughs, AI-generated questions, and more.
Get Started Free