Created
July 17, 2017 16:34
-
-
Save ethanstenis/230d37b3a75ce8176d16d49d15a48171 to your computer and use it in GitHub Desktop.
This is the solution to Codewars' KATA: Do I get a bonus?
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 bonusTime(salary, bonus) { | |
if(bonus === true){ | |
return '£' + salary * 10; | |
} else { | |
return '£' + salary; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks, I was getting an error but then I saw that I was printing and not returning. I used this to complete the kata in Python