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
2 Respuestas
0
You can use ternary operator or if loops.
________________________
With ternary operator,
console.log(oldPass==newPass?true:false)
0
thanks so much