Skip to content

Update controller.js - #2

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

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

Conversation

@haslam93

Copy link
Copy Markdown
Owner

I added Modulo operator

@haslam93
haslam93 requested a review from Copilot December 11, 2024 14:22

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.

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 }, // Modulo

Copilot AI Dec 11, 2024

Copy link

Choose a reason for hiding this comment

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

The key 'modulo' is missing an opening quote. It should be 'modulo': function(a, b) { return a % b },

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

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