Answer to Question #273697 in HTML/JavaScript Web Application for V.kathiravan

Question #273697

Create a Javascript block validates username and password

1
Expert's answer
2021-12-01T10:57:23-0500
const user = "Potter";
const pass = "12344321";
let username = prompt();
let password = prompt();
if (username === user && password === pass) console.log("YES\n");
else console.log("NO\n");

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS