Skip to content

Commit

Permalink
Use textContent when possible
Browse files Browse the repository at this point in the history
  • Loading branch information
kyletimmermans authored Jul 16, 2024
1 parent 8b9c5f5 commit 40231e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ const verb = () => {


const singNoun = () => {
document.querySelector("#centered-title").innerHTML = "Singular Noun Cases";
document.querySelector("#centered-title").textContent = "Singular Noun Cases";

if (fetchList.includes("noun") == false) {
fetch("/wordbank/nouns.json")
Expand Down Expand Up @@ -716,7 +716,7 @@ const resetForm = (newQuestion) => {
}

// Reset Result and input answer field
document.getElementById("result").innerHTML = "Result: ";
document.getElementById("result").textContent = "Result: ";
document.getElementById("inputAnswer").value = "";

// Turn skip button back into check-button
Expand Down

0 comments on commit 40231e6

Please sign in to comment.