-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
30 lines (25 loc) 路 657 Bytes
/
Copy pathscript.js
File metadata and controls
30 lines (25 loc) 路 657 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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(){
//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.
*/