Answers for "Find specific string by using includes in javascript"

0

Find specific string by using includes in javascript

const friendsList = ["Abir", "Lalkhan", "Lion", "Shamol", "Kabir", "Shabir"];
if (friendsList.includes("Lion")) {
    console.log("Lion is Exists");
}
//Output: Lion is Exists
Posted by: Guest on December-26-2021

Code answers related to "Find specific string by using includes in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language