showing results for - "str conteints js"
Amy
05 Jul 2018
1var string = 'Hello World';
2
3if (string.includes('World')) {
4    console.log('Yeah!');
5}
6
7// The includes() method determines whether a string contains the
8// characters of a specified string. This method returns true if the
9// string contains the characters, and false if not. Note: The
10// includes() method is case sensitive.
queries leading to this page
str conteints jsstr conteints js