Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion javascript/src/fizzbuzz.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ module.exports = function(input) {
if(input % 5 === 0)
output += 'Buzz'
if(input % 99 === 0) output += 'Strange'
if(input % 101 === 0) output += 'Even Stranger'
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Strings must use doublequote.

Suggested change
if(input % 101 === 0) output += 'Even Stranger'
if(input % 101 === 0) output += "Even Stranger"

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Expected { after 'if' condition.

Suggested change
if(input % 101 === 0) output += 'Even Stranger'
if(input % 101 === 0) {output += 'Even Stranger'}

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Expected { after 'if' condition.

Suggested change
if(input % 101 === 0) output += 'Even Stranger'
if(input % 101 === 0) {output += 'Even Stranger'}

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Strings must use doublequote.

Suggested change
if(input % 101 === 0) output += 'Even Stranger'
if(input % 101 === 0) output += "Even Stranger"



return output.length > 0 ? output : input
}
}