const s = 'I am going to become a FULL STACK JS Dev with Coderslang';
console.log(s.endsWith('lang')); // true
console.log(s.endsWith('LANG')); // false
JavaScript startsWith() Case sensitive Example
const text = 'Hello, Welcome to JavaScript World';
console.log(text.endsWith('World')); // true
console.log(text.endsWith('world')); // false
function isJS(path) {
return /jsx?$/.test(path)
}