Skip to content

Conversation

@tejanayak12
Copy link

No description provided.

@@ -0,0 +1,45 @@
function arthamaticopeartions(operations){
Copy link
Owner

Choose a reason for hiding this comment

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

always remember to use camelCase naming convention for variables/functions name

replace arthamaticopeartions to arithmeticOpeartions

@@ -0,0 +1,45 @@
function arthamaticopeartions(operations){
Copy link
Owner

Choose a reason for hiding this comment

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

And one more thing parameter name should be operation not operations
because we just pass a single operator. So if we define operations then it will confuse the user

for a single operator, then parameter should be operation
for multiple operator, then parameter should be operations

Comment on lines 27 to 31
const addfunction = arthamaticopeartions('+');
const multiplyfunction = arthamaticopeartions('*');
const subractfunction = arthamaticopeartions('-');
const divisionfunction = arthamaticopeartions('/');
const modulefunction = arthamaticopeartions('%');
Copy link
Owner

Choose a reason for hiding this comment

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

Here also using camelCase naming conventions for function names

@tejanayak12
Copy link
Author

ok anna i will change and commit it

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