JavaScript endswith () Exemplo com parâmetro de comprimento

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