Skip to content

Update controller.js - #3

Open
haslam93 wants to merge 1 commit into
mainfrom
haslam93-patch-3
Open

Update controller.js#3
haslam93 wants to merge 1 commit into
mainfrom
haslam93-patch-3

Conversation

@haslam93

Copy link
Copy Markdown
Owner

Added modulo feature

@haslam93
haslam93 requested a review from Copilot December 12, 2024 03:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 suggestion.

Comments skipped due to low confidence (1)

api/controller.js:19

  • The function name 'modulo' is inconsistent with the other operation names. It should be renamed to 'mod'.
modulo: function(a,b) {return a%b}

Comment thread api/controller.js
'subtract': function(a, b) { return a - b },
'multiply': function(a, b) { return a * b },
'divide': function(a, b) { return a / b },
modulo: function(a,b) {return a%b}

Copilot AI Dec 12, 2024

Copy link

Choose a reason for hiding this comment

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

There should be a space after the comma in the function parameters for better readability.

Suggested change
modulo: function(a,b) {return a%b}
modulo: function(a, b) {return a % b}

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants