diff --git a/index.js b/index.js index bee567d..924e869 100644 --- a/index.js +++ b/index.js @@ -1,29 +1,36 @@ -var animal = 'dog' + +var animal = 'dog'; function myAnimal() { - return animal + 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 - return animal + var animal = "cat"; + return animal; } function add2(n) { + const two = 2 return n + two // Feel free to move things around! - const two = 2 + } -var funkyFunction = function() { - return function() { + + var funkyFunction = function() { + + return function () { return "FUNKY!" } } + function theFunk() = funkyFunction(); + // 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 +