Using the is() function and the equals() method