diff --git a/index.js b/index.js index bee567d..1b09bef 100644 --- a/index.js +++ b/index.js @@ -5,17 +5,18 @@ function myAnimal() { } function yourAnimal() { + var animal = "cat" // How can we make sure that this function // and the above function both pass? // P.S.: You can't just hard-code 'cat' below return animal } -function add2(n) { - return n + two +function add2(n) { // Feel free to move things around! const two = 2 + return n + two } var funkyFunction = function() { @@ -26,4 +27,5 @@ var funkyFunction = function() { // 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 +var theFunk = funkyFunction()() +theFunk()