Skip to content

Commit

Permalink
Create raw.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Server2003User authored Apr 9, 2024
1 parent ef218ad commit 231abd0
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions raw.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// inital variables
let answer;
let answerTotal = parseInt(document.getElementById("pracTotal").innerHTML);
let answeredAnswered = 1;

// gets answer from app
function getAnswer() {
answer = pracContent[pracSide2][pracWord].toLowerCase();
document.getElementById("pracBox").value = answer;
checkWord();
}

// set, check and loop answer
while (answerTotal > answeredAnswered) {
getAnswer();
nextWord();
answeredAnswered++;
}

// get answer one last time
getAnswer();

0 comments on commit 231abd0

Please sign in to comment.