JavaScript startsWith() Case sensitive Example const text = 'Hello, Welcome to JavaScript World'; console.log(text.endsWith('World')); // true console.log(text.endsWith('world')); // false