// while loop = repeat some code WHILE some condition is true let loggedIn = false; let username; let password; while(!loggedIn){ username = window.prompt(`Enter your username`); password = window.prompt(`Enter your password`); if(username === "myUsername" && password === "myPassword"){ loggedIn = true; console.log("You are logged in!"); } else{ console.log("Invalid credentials! Please try again"); } }
bro thank you very much, your videos help a lot to quickly and easily understand various topics, Greetings from Russia. And I would like to know when there will be courses in C#
// while loop = repeat some code WHILE some condition is true
let loggedIn = false;
let username;
let password;
while(!loggedIn){
username = window.prompt(`Enter your username`);
password = window.prompt(`Enter your password`);
if(username === "myUsername" && password === "myPassword"){
loggedIn = true;
console.log("You are logged in!");
}
else{
console.log("Invalid credentials! Please try again");
}
}
This is my seal. I have watched the entire video, understood it, and I can explain it in my own words, thus I have gained knowledge. This is my seal.
bro thank you very much, your videos help a lot to quickly and easily understand various topics, Greetings from Russia. And I would like to know when there will be courses in C#
crazy full course!
hey, you didn't say, what's up everybody? This is your bro here.
that was cool and informative . thanks buddy
“HELP!”
- Bro Code
What's the matter buddy
Hey bro please what is the difference between this tutorials and the previous one ??
3:19
Thanks. 🎉🎉🎉🎉
Nice!
Do django next
im still waiting postgres videos :(
Can you explain me what this code ""${username}"" means
Its a placeholder, you need to use `` instead of "" to use it
❤
Do django pls
0:54
Do django next
3:14
Do django next