From 038a9951f5edf08ade22a41f9b3bd4177b30cbed Mon Sep 17 00:00:00 2001 From: Megan Poosangtongchai Date: Wed, 24 Jan 2018 07:53:13 +0000 Subject: [PATCH] Done. --- index.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/index.js b/index.js index bee567d..1554cb1 100644 --- a/index.js +++ b/index.js @@ -8,22 +8,22 @@ 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) { - return n + two - - // Feel free to move things around! - const two = 2 + const two = 2; + return n + two; } var funkyFunction = function() { return function() { - return "FUNKY!" + 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 +var theFunk = funkyFunction()(); +