WhileLoopFactorial: Optimize and add tests#992
WhileLoopFactorial: Optimize and add tests#992raklaptudirm merged 7 commits intoTheAlgorithms:masterfrom merelymyself:master
Conversation
There was previously an unnecessary check for if the number was 0 or 1.
The test was not present previously.
appgurueu
left a comment
There was a problem hiding this comment.
I'd probably prefer a for-loop but this is fine. Thanks for adding tests in particular. @raklaptudirm do we have a guideline on authorship documented as comments in code files? I believe it should be kept only in the Git history and the comment should be removed entirely.
@raklaptudirm space before function parentheses is bad style IMO, can't standard be configured differently? |
|
@appgurueu No standard is a style that can't be configured. That is basically the reason we use it, as it is easy of beginners. Imo, as long a consistent style is being maintained the details don't matter. |
|
Also, we do not have a guideline for inline author annotations. |
|
@merelymyself Do this: $ npm install standard --global
$ standard --fix |
…ard, so I just used the online verifier at https://standardjs.com/demo.html
Welcome to the JavaScript community
Describe your change:
Checklist:
Example:
UserProfile.jsis allowed butuserprofile.js,Userprofile.js,user-Profile.js,userProfile.jsare notFixes: #{$ISSUE_NO}.