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
const pets = ['Cat', 'Dog', 'Bird', 'Fish', 'Frog', 'Hamster', 'Pig', 'Horse', 'Lion', 'Dragon']; | |
// Print all pets | |
console.log(pets[0]); | |
console.log(pets[1]); | |
console.log(pets[2]); | |
console.log(pets[3]); | |
... | |
//This code is not DRY because accessing the pets array and consolling each pet one by one is repeatetive activity and can be avoided by looping through the array. |
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
{ | |
"connector": { | |
"name": "local", | |
"options": { | |
"pattern": ["**", "!.git/**", "!node_modules/**"] | |
} | |
}, | |
"extends": ["development"], | |
"formatters": ["stylish"], | |
"hints": [ |