I'm trying to code a password variable that can hold multiple values so any of the following passwords can work and give access to the site.
var pass1="testpass1", "testpass2";
password=prompt('Whats the pass?',' ');
if (password==pass1)
alert('ja');
else
{
alert('nein')
window.location="https://google.com/";
}
I really need to figure this out.
Thank you!