-
Notifications
You must be signed in to change notification settings - Fork 7
/
adds_functions.js
54 lines (45 loc) · 1.63 KB
/
adds_functions.js
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// Add a function to this that adds two numbers
module.exports = {
kendellsAddNumberFunction: function(firstNumber, secondNumber){
return secondNumber + firstNumber;
},
zachmultiplyTwoNumbersandsubtractnumberTwo: function (firstNumber, secondNumber,numberTwo) {
return (firstNumber * secondNumber) - (firstNumber * secondNumber) + firstNumber + secondNumber
//return firstNumber*secondNumber-numberTwo;
},
mattsDestroyNumbersFunction: function(poorUnfortunateNumber, numberZero){
return poorUnfortunateNumber * numberZero;
},
frankSubtractTwoNumbers: function(numberOne, numberTwo){
return numberOne - numberTwo;
},
samsAddTwoNumbers: new Function('e', 't',
(!![]+[])[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!![]+[])[+!+[]]+
([][[]]+[])[+!+[]]+(+[![]]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+
(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+!+[]]]+(!![]+[])[!+[]+!+
[]+!+[]]+(+(+!+[]+(!+[]+[])[!+[]+!+[]+!+[]]+[+!+[]]+[+[]]+[+[]])+[])[!+[]+!+[]]+(!![]+[])[+
[]]),
groupAddsFunction: function(I, h){
{
{
{
{
return I + h;
}
}
}
}
},
PatADDS_twoNumbers: function(numeroUno, Deuce) {
const firstNumber = true ? numeroUno : null
;if (firstNumber.isNaN) { alert("uh ohh!") ;} else {
// continue running this function;
}
;var secondOne = true ? false ? undefined : Deuce : null
;return firstNumber + secondOne
;},
eriksAddsFunction: function() {
const __ = (___, ____) => ___ + ____;
return Array.prototype.slice.call(arguments).reduce(__);
}
};