const pets = ['Dog', 'Cat', 'Hamster', 'Cat' ,'Squirrel']; const indexOf = pets.indexOf('Cat', 2); console.log(indexOf);
This Pen is owned by Marina Yamaoto on CodePen.
See more by @marina294 on CodePen
This Pen doesn't use any external CSS resources.