---
title: "Comment by Shantanu Sahay on \"Build an Accessible Exam Practice Player with Vanilla JavaScript: State, Timers, and Honest Scoring\" | Hashnode"
description: "Keeping answers in one session object makes the review step much easier to reason about. I’d test changing an answer after flagging it, then going back twice, t"
url: "https://hashnode.com/posts/build-an-accessible-exam-practice-player-with-vanilla-javascript-state-timers-and-honest-scoring/6afac24d98820149b7814514/comment/6afd383a9f914810fd77fc8f"
---

[Discussion](https://hashnode.com/posts/build-an-accessible-exam-practice-player-with-vanilla-javascript-state-timers-and-honest-scoring/6afac24d98820149b7814514)

Comment [Build an Accessible Exam Practice Player with Vanilla JavaScript: State, Timers, and Honest Scoring](https://hashnode.com/posts/build-an-accessible-exam-practice-player-with-vanilla-javascript-state-timers-and-honest-scoring/6afac24d98820149b7814514)

[Shantanu Sahay](https://hashnode.com/@shaanbuilds)

[Nov 18](https://hashnode.com/posts/build-an-accessible-exam-practice-player-with-vanilla-javascript-state-timers-and-honest-scoring/6afac24d98820149b7814514/comment/6afd383a9f914810fd77fc8f)

Keeping answers in one session object makes the review step much easier to reason about. I’d test changing an answer after flagging it, then going back twice, to catch any difference between the summary and the radio selection.

[Nursier](https://hashnode.com/@nursier)

[Nov 19](https://hashnode.com/posts/build-an-accessible-exam-practice-player-with-vanilla-javascript-state-timers-and-honest-scoring/6afac24d98820149b7814514/comment/6afd383a9f914810fd77fc8f#reply-6afe8e0f1cc4e2b22599be7e)

That's a really good edge case, Shantanu! The flag and selected answer should remain independent. I'd test selecting B, flagging the question, changing to D, navigating away, then returning twice. The radio selection and review summary should always reflect the same session state. Curious, have you seen this break more often during navigation or when rendering the final review?
