const friendsList = ["Abir", "Lalkhan", "Lion", "Shamol", "Kabir", "Shabir"]; if (friendsList.indexOf("Lion") != -1) { console.log("Lion Exists"); } //Output: Lion Exists