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
30 changes: 30 additions & 0 deletions exercises/ES6-arrow-functions
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
TODO: Write a function that sums two numbers
TODO: Write a function that subtracts two numbers
TODO: Write a function that divides two numbers.
TODO: Write a function that multiplies two numbers.
*NOTE* be sure to handle dividing by zero 😉
ES5 Syntax: function Add(){}
ES6 Syntax (Arrow function): const add = () => {}
*/

function add() {
//Add function here
}

function sub(a, b)
//Subtract function here
}

function div() {
//Divide function here
}

function mul() {
//Multiply function here
}

console.log('hello from the SUM exercise')
/*
TODO: create a function that console logs the result of any of the above operations.
*/