Strings In Depth5 / 18
Up next

startsWith and endsWith

const file = "report.pdf";
console.log(file.startsWith("report"));
console.log(file.endsWith(".pdf"));
What you're solving

test the ends of a string