Check if Substring is Present in a Given String |JavaScript: How to check a string exists in another

preview_player
Показать описание
Code :

//Method 1 : Static values without functions
const string = "potato"
const substring = "to"

//Creating a function and sending values dynamically
function stringContainsSubString(string,substring){
return true
}else{
return false
}
}

Next Steps :

---------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------
Must Watch Playlists

---------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------

#substringPresentInString
#javascript
#substring
Рекомендации по теме
welcome to shbcf.ru