JavaScript endswith () Contoh dengan parameter panjang

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