Created
November 19, 2014 18:54
-
-
Save miguelmota/b0a154f58959f3c4d188 to your computer and use it in GitHub Desktop.
Minus percent function in JavaScript
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
function minusPercent(n,p) { | |
return n - (n * (p/100)); | |
} | |
console.log(minusPercent(100,30)); // 70 |
awesome
Super. Thks !!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks bro