Skip to content
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

numbers 11 success tests #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 33 additions & 33 deletions src/numbers.js
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
function add (a, b) {
// your code here
}
const add = (a, b) => {
return a+b;
};

function subtract (a, b) {
// your code here
}
const subtract = (a, b) => {
return a-b;
};

function multiply (a, b) {
// your code here
}
const multiply = (a, b) => {
return a*b;
};

function divide (a, b) {
// your code here
}
const divide =(a, b) => {
return a/b;
};

function power (a, b) {
// your code here
}
const power =(a, b) =>{
return Math.pow (a, b);
};

function round (a) {
// your code here
}
const round = (a) =>{
return Math.round(a);
};

function roundUp (a) {
// your code here
}
const roundUp = (a) =>{
return Math.ceil(a);
};

function roundDown (a) {
// your code here
}
const roundDown =(a)=> {
return Math.floor(a);
};

function absolute (a) {
// your code here
}
const absolute =(a)=> {
return Math.abs(a);
};

function quotient (a, b) {
// your code here
}
const quotient =(a, b)=> {
return Math.trunc(a/b);
};

function remainder (a, b) {
// your code here
}
const remainder =(a, b)=> {
return a%b;
};

module.exports = {
add,
Expand Down