Last active
November 17, 2019 03:03
-
-
Save taingmeng/5b09f3c2d292bc5593d6003ad2a67299 to your computer and use it in GitHub Desktop.
Bad example of magic number
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 totalPrice = (value, discount) => { | |
return ((value * 1.07) - discount) * 1.1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment