-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Closed
Description
After completing a quote, the input is disabled, and there’s no way to restart without refreshing the page. Add a reset mechanism.
const startGame = () => {
const quote = getRandomQuote();
words = quote.split(" ");
wordIndex = 0;
renderQuote(quote);
messageElement.textContent = messages.start;
typedValueElement.value = "";
typedValueElement.disabled = false;
typedValueElement.focus();
startTime = Date.now();
};
Metadata
Metadata
Assignees
Labels
No labels