Frontend Interview Question - Javascript redux like state implementation

24 Jul 2024 · 8 min
8:28

Build a Redux-style state manager in JavaScript with a State class that stores values and notifies subscribers on changes. The implementation uses an array of callbacks, a subscribe method that returns an unsubscribe handle, and a notifySubscribers method that fires all registered callbacks when state changes.

Chapters

More from Happy

youtube.com

Frontend interview question 2024 - javascript technical assignment

2y ago
youtube.com

React Todo classes vs hooks

2y ago
youtube.com

Design System Interview - Design System for a kanban board , Fullstack developer, 2024

2y ago
youtube.com

Frontend Design System Interview - Azure resources application, 2024

2y ago
youtube.com

Frontend Design System Interview - 2 questions in one interview, 2024

2y ago
youtube.com

Frontend Design System Interview - question 1, 2024

2y ago
youtube.com

Frontend interview question - Fibonacci all the question variations

2y ago
youtube.com

Frontend interview question 2023 - React recursive tree

2y ago
youtube.com

Frontend interview question 2024 - buckets question

2y ago
youtube.com

Frontend interview question 2024 - file size

2y ago
youtube.com

React interview questions - Counter questions (react hooks)

2y ago
See all content