Practice · 1 of 2
State-to-DOM Renderer
CHALLENGE
Difficulty: advanced+25 XP
Write renderTasks(state) that returns an HTML STRING (never touches the DOM directly): tasks ordered by done ascending then priority weight high=3, medium=2, low=1, each rendered as <li data-id="ID" class="done?">TITLE</li> — class "done" only when done is true. Plus nextId(state) returning the next numeric id as a string.
Press Submit to check your solution.
Back to lesson: Practice: Dashboard Mini-Build