Notepad (Vanilla JS)

Build a notepad in vanilla JavaScript: a sidebar of notes and an editor, rendered from a single state object without losing the caret or focus.

Asked in LinkedIn frontend interviews