Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save easierbycode/d0083b7c3413cea0b02b136c665ee269 to your computer and use it in GitHub Desktop.
Save easierbycode/d0083b7c3413cea0b02b136c665ee269 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment