Thank you so much! I have started to learn js from one book, and there for now is only basic staff, but yes, thank you, ill wrap my code like that in the future learning.
Now I see everything is alright. Maybe I did understand something wrong. I thought the message "name not correct" will appear immediately after I wrote incorrectly the name, but its not. My mistake
Hello!
Please tell me someone what s wrong is with this code:
var n = "Alice";
var l = "Field";
var name = prompt("Enter your name");
var lastName = prompt("Enter your last name");
if (name === n) {
if (lastName === l) {
alert("d");
}
else {
alert("try again")...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.