Lesson 7 Challenge 1
by nathanesa
JavaScript
var password = 'x1yG2k4!';
var guess = prompt('Enter the password: ');
while (guess != password) {
guess = prompt('Try again: ');
}
document.write('Access Granted!');
by nathanesa
var password = 'x1yG2k4!';
var guess = prompt('Enter the password: ');
while (guess != password) {
guess = prompt('Try again: ');
}
document.write('Access Granted!');