JavaScript startsWith() Case without position const text = 'Hello, Welcome to JavaScript World'; console.log(text.endsWith('Welcome')); // false