-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
30 lines (24 loc) · 596 Bytes
/
index.js
File metadata and controls
30 lines (24 loc) · 596 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
var animal = 'dog'
function myAnimal() {
return animal
}
function yourAnimal() {
// How can we make sure that this function
// and the above function both pass?
// P.S.: You can't just hard-code 'cat' below
var yourAni = "cat"
return yourAni;
}
function add2(n) {
const two = 2
return n + two
// Feel free to move things around!
}
var funkyFunction = function() {
return function() {
return "FUNKY!"
}
}
// We want to set theFunk equal to "FUNKY!" using our funkyFunction.
// NOTE: you only need to modify the code below this line.
var theFunk = funkyFunction()()