JavaScript JavaScript Loops, Arrays and Objects Simplify Repetitive Tasks with Loops Create a `do...while` loop

Tyron Monts
Tyron Monts
7,695 Points

I am stuck on the process of completing this challenge

would be grateful for any help provided.

script.js
var secret= ;
do {
 secret = prompt("What is the secret password?");
}
while ( secret !== "sesame" ) {

}
document.write("You know the secret password. Welcome.");
index.html
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JavaScript Loops</title>
</head>
<body>
<script src="script.js"></script>
</body>
</html>

1 Answer

KRIS NIKOLAISEN
KRIS NIKOLAISEN
54,167 Points

Here you have an assignment operator but you aren't assigning anything

var secret= ;

You can just leave the assignment operator off