You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created an array called guestList and the first letter of each name is in uppercase. However, when in the prompt, I am typing the same name but all letters in lower case, I'm not getting the desired results as given in the code, despite changing the guest variable to (.toLowerCase();) .. how to fix it?
var guestList = ["Jack", "Jay", "Jim", "John", "Joseph"];
alert("HEL0000, thanks for dropping by. Click 'OKAY' to check if you're on the invite list!");
var guest = prompt("Enter your name here");
guest.toLowerCase();
if (guestList.includes(guest)) {
alert("Welcome to the party!! 14 Feb, 8PM, sharp");
}
else {
alert("Sorry, may be next time!")
}
The text was updated successfully, but these errors were encountered:
This seem to have nothing to do with this project, this is not a general help support, please only open an issue here if you have an issue with the plyer library.
I created an array called guestList and the first letter of each name is in uppercase. However, when in the prompt, I am typing the same name but all letters in lower case, I'm not getting the desired results as given in the code, despite changing the guest variable to (.toLowerCase();) .. how to fix it?
var guestList = ["Jack", "Jay", "Jim", "John", "Joseph"];
alert("HEL0000, thanks for dropping by. Click 'OKAY' to check if you're on the invite list!");
var guest = prompt("Enter your name here");
guest.toLowerCase();
if (guestList.includes(guest)) {
alert("Welcome to the party!! 14 Feb, 8PM, sharp");
}
else {
alert("Sorry, may be next time!")
}
The text was updated successfully, but these errors were encountered: