Home>test() JavaScript RegExp Method>Edit It: Test if 'Sweetly' is at the end of 'CodeSweetly'Edit It: Test if 'Sweetly' is at the end of 'CodeSweetly'This code shows how to test if 'Sweetly' is at the end of 'CodeSweetly'.See it on StackBlitz