Skip to content

Instantly share code, notes, and snippets.

View ndayishimiyeeric's full-sized avatar
🌐
Learning

Ndayishimiye Eric ndayishimiyeeric

🌐
Learning
View GitHub Profile
@ndayishimiyeeric
ndayishimiyeeric / Example 1
Created May 2, 2022 10:34
Microverse Is It DRY Exercise
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.