easierbycode
4/29/2016 - 8:42 PM

string-startsWith-endsWith-or-includes.js

let title = 'Santa Claus';

console.log( title.startsWith( 'Santa' ) );
// true

console.log( title.endsWith( 'Claus' ) );
// true

console.log( title.includes('clau') );
// false

console.log( title.includes('Clau') );
// true