diff --git a/exercises/ES6-arrow-functions b/exercises/ES6-arrow-functions new file mode 100644 index 0000000..4e9be5f --- /dev/null +++ b/exercises/ES6-arrow-functions @@ -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. +*/