-
Notifications
You must be signed in to change notification settings - Fork 14
return function added #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| @@ -0,0 +1,45 @@ | |||
| function arthamaticopeartions(operations){ | |||
There was a problem hiding this comment.
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){ | |||
There was a problem hiding this comment.
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
| const addfunction = arthamaticopeartions('+'); | ||
| const multiplyfunction = arthamaticopeartions('*'); | ||
| const subractfunction = arthamaticopeartions('-'); | ||
| const divisionfunction = arthamaticopeartions('/'); | ||
| const modulefunction = arthamaticopeartions('%'); |
There was a problem hiding this comment.
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
|
ok anna i will change and commit it |
No description provided.