Skip to content

Create ES6-arrow-functions #4

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

Open
wants to merge 1 commit into
base: main
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
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.
*/