const file = "report.pdf"; console.log(file.startsWith("report")); console.log(file.endsWith(".pdf"));
test the ends of a string