js to determine if a string contains a certain character
Method 1 (recommended): indexOf() indexOf() method: Returns the first occurrence of a specified string value in the string. If the string value to be retrieved does not appear, the method returns -1. var str = “LiHeErNAN” ; console . log ( str . indexOf ( “A” ) != – 1 ) ; // true Method […]
js to determine if a string contains a certain character Read More »