Skip to content

Commit 127829d

Browse files
committed
change response from const to let variable
1 parent b4c386b commit 127829d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎prep/passwordChecker.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@
99

1010
// 2 Multiple outcomes
1111
const password = "secretword123";
12-
const userInput = "thisiswrong";
12+
const userInput = "secretword123";
1313
const adminPassword = "override";
14-
const response = "";
14+
//Changed the const to let so that the response variable can be changed
15+
let response = "";
1516

1617
if (userInput === password){
1718
response = "Correct password entered";

0 commit comments

Comments
 (0)