+ 3
How to get password checked in js
please send a code such that . in that code the user must enter password 5732 in js and then the page must visible.
3 odpowiedzi
+ 4
var password=5732;
var check=prompt("enter password");
if(check == password){
alert("password matched")
}else{
alert("password not matched")
}
+ 2
not that I want to set a password for my code with js