Easy
JavaScript: How to Check if String Ends with Substring - endsWith vs Other Methods
Which method is best for checking if a string ends with a specific substring?
1const str = "JavaScript is amazing!";2const check = // Your implementation here;3console.log(check);