0
Comparison Operators
I’m trying to solve the code challenge Change Your Password in javascript. I can’t figure out what is wrong with my code. var oldPass = readLine() var newPass = readLine() console.log(oldPass == newPass); Based on the lesson (comparison operator equality) this seems correct. Why is it not?
4 Answers
+ 1
I tried :
console.log(oldPass == newPass )
it worked.
what error did you get?
0
i get false for all 5 tests but 3 of them should be true
0
could you share the whole code, create a private code and send me the link.
0
the issue is in ++
function readLine() {
return inputString[currentLine ];
}
change it to
function readLine() {
return inputString[currentLine++];
}
Hot today
I have made a calculator in which my % (Percentage) not work correctly for 100%50 or 100%20.
2 Votes
Python palindrome challenge.
1 Votes
Java
0 Votes
Number of Ones ( C++ ) question!
1 Votes