premier kata pour les stagiaires

This commit is contained in:
Yannick Francois
2019-04-10 19:15:22 +02:00
parent 4cd770e832
commit 3f7434bd03
6 changed files with 1045 additions and 0 deletions

11
kata/nodejs/fizzbuzz.js Normal file
View File

@ -0,0 +1,11 @@
module.exports = function (nombre) {
if (nombre % 15 == 0) {
return 'fizzbuzz'
} else if (nombre % 5 == 0) {
return 'buzz'
} else if (nombre % 3 == 0) {
return 'fizz'
} else {
return nombre
}
}