How to check if a string contains a substring in JavaScript

preview_player
Показать описание
There are two simple methods for checking if a string contains a substring in JavaScript. In this video I touch on using the ES6 method of includes, which may not work with Internet Explorer, as well as the slightly more reliable method of indexOf. Both of these will be helpful when doing string comparisons in JS.

In this playlist
Рекомендации по теме
Комментарии
Автор

BEST VIDEO EVER
It just helped me ❤❤❤

Mrfunn_Reels
Автор

is there anyway to make this not case sensitive

byEVxL