Created
November 12, 2022 02:17
-
-
Save abdallahmalima/26ef40686aec21d0953095053b669ee8 to your computer and use it in GitHub Desktop.
check DRY principle
This file contains hidden or 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 greet = (message, name) => { | |
console.log(`${message}, ${name}!`) | |
} | |
greet('Hello', 'John'); | |
greet('Hola', 'Antonio'); | |
greet('Ciao', 'Luigi') |
Author
abdallahmalima
commented
Nov 12, 2022
- No code is repeated except the function call which does not violate DRY principle
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment