SoloEasy15m
Implement Undo/Redo for Text Editor
Users expect Ctrl+Z / Ctrl+Y in the text editor. Implement undo/redo using two stacks: one for undo history, one for redo history. Each action (type character, delete character) pushes state onto the undo stack.
Skills you'll prove
javascriptdata-structuresstacksstate-management