Skip to content

Instantly share code, notes, and snippets.

@kelvinndmo
Created February 14, 2020 13:21
Show Gist options
  • Save kelvinndmo/86882820f010383f62520702d2ad6186 to your computer and use it in GitHub Desktop.
Save kelvinndmo/86882820f010383f62520702d2ad6186 to your computer and use it in GitHub Desktop.
const add = (a, b) => {
return `sum is ${a + b}`
}
const substract = (a, b) =>{
console.log(a-b)
return a - b
}
const multiplication = (a, b) => {
return a * b
}
const division = (a, b) => {
return a / b
}
const modulo = (a, b) => {
return a % b
}
module.exports = {
add,
substract,
multiplication,
division,
modulo
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment