Skip to content

Commit adf91f0

Browse files
committed
Update fizzbuzz.js
1 parent 2920c92 commit adf91f0

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

fizzbuzz.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1+
//
2+
// This is only a SKELETON file for the 'FizzBuzz' exercise. It's been provided as a
3+
// convenience to get you started writing code faster.
4+
// Make sure to look at test.script.js--that should give you some hints about what is
5+
// expected here.
6+
17
'use strict';
28

39
var fizzbuzz = function (x) {
4-
if (x % 15 === 0) {
5-
return "fizzbuzz";
6-
} else if (x % 5 === 0) {
7-
return "buzz";
8-
} else if (x % 3 === 0) {
9-
return "fizz";
10-
} else {
11-
return x;
12-
}
10+
//
11+
// YOUR CODE GOES HERE
12+
//
1313
};
1414

1515
module.exports = { fizzbuzz: fizzbuzz };

0 commit comments

Comments
 (0)