Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
 
PREVIOUS NEXT
Tagged: #Find #specific #string #includes #javascript
ADD COMMENT
Topic
Name
1+5 =