maccony202 / dry-gist

it is dry

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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]); ... .cat { font-family: "Times New Roman", Times, serif; font-size: 1rem; color: #FFF;

} .dog { font-family: "Times New Roman", Times, serif; font-size: 1rem; color: #000; } .dragon { font-family: "Times New Roman", Times, serif; font-size: 1rem; color: #009933; }

It is dry because it is console loging the each index in the array

const greet = (message, name) => { console.log(${message}, ${name}!) }

greet('Hello', 'John'); greet('Hola', 'Antonio'); greet('Ciao', 'Luigi') .greetings { font-family: Arial, sans-serif; font-size: 1.5rem; }

.greetings.english { background-color: #000; color: #FFF; } .greetings.spanish { background-color: #FFF; color: #000; }

it is dry because the function is having template letrals

About

it is dry