From 23ba38ef5259dcb0969fad80c237f50a8b85c9cb Mon Sep 17 00:00:00 2001 From: Evangeline VIllena Date: Sun, 28 Jan 2018 22:24:54 +0000 Subject: [PATCH] Done. --- index.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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()