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