This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The Code in the example 1 is not DRY Because there repetition. | |
below there is the atleast DRY Code of javascript. | |
const pets = ['Cat', 'Dog', 'Bird', 'Fish', 'Frog', 'Hamster', 'Pig', 'Horse', 'Lion', 'Dragon']; | |
//Print all pets | |
pets.forEach((pet) => console.log(pet)); | |
below there is it atleast dry code of css. |