0

Help Solve the Problem

The new password from the account must not be the same as the old password. Write a program that accepts old and new passwords as input and outputs a Boolean value (true or false) to the console that indicates whether they match. Sample Input hl8792m hl8792m Sample Output true https://code.sololearn.com/WZ2w66Xvy165/?ref=app

1st Jul 2021, 12:44 PM
Vyacheslav Simdyanov
Vyacheslav Simdyanov - avatar
2 Respuestas
0
You can use ternary operator or if loops. ________________________ With ternary operator, console.log(oldPass==newPass?true:false)
1st Jul 2021, 1:07 PM
Abhay
Abhay - avatar
0
thanks so much
1st Jul 2021, 1:17 PM
Vyacheslav Simdyanov
Vyacheslav Simdyanov - avatar