Skip to content

Commit 6dfeab1

Browse files
authored
Updates : keys -> ans
keys is a function for javascript which is giving error in some browsers
1 parent a0f7b14 commit 6dfeab1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

script.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11

22
// chanage keys value
3-
const keys = "CABDAAAAACDAADBABAABCAABDBABBCDABCCBCDAD";
4-
const len = keys.length;
3+
const ans = "CABDAAAAACDAADBABAABCAABDBABBCDABCCBCDAD";
4+
const len = ans.length;
55

66
let i = 0;
77

88
const inter = setInterval(
99
() => {
10-
document.querySelector(`#${keys[i]}_${i+1}`).click(); // select the correct option
10+
document.querySelector(`#${ans[i]}_${i+1}`).click(); // select the correct option
1111
document.querySelector("#main_div > div.tableWidthPercent > div.onlineTestLeftDiv > div.qnav > span.saveNextButton > a").click(); // move to next question
1212
i++;
1313

0 commit comments

Comments
 (0)