Created
December 7, 2021 09:52
-
-
Save sunnyy02/ec06b548d5e7137d2c853fab5587a256 to your computer and use it in GitHub Desktop.
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 applyFixDiscount= (x) => x - 20 | |
const applyVipOffer = (x) => x / 2 | |
const getDiscountedPrice = (x) => applyVipOffer(applyFixDiscount(x)) | |
console.log(getDiscountedPrice(100)) // 40 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment