Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var myGuest = prompt("What is your name?");
- var guestList = ["Vlad", "Kyla", "Dhave", "Jambi"];
- if (guestList.includes(myGuest)){
- alert("Welcome");
- } else {
- alert("Youre not welcome here");
- }
Advertisement
Add Comment
Please, Sign In to add comment