From e901b7714235ac1f29e547db3081c14b591348a8 Mon Sep 17 00:00:00 2001 From: Nicolas Marini Date: Sat, 20 Jan 2018 18:13:57 +0000 Subject: [PATCH] Done. --- index.js | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/index.js b/index.js index bee567d..3c85b08 100644 --- a/index.js +++ b/index.js @@ -4,26 +4,38 @@ function myAnimal() { return animal } -function yourAnimal() { +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 + return animal; } function add2(n) { - return n + two + return n + 2; // Feel free to move things around! - const two = 2 + } -var funkyFunction = function() { - return function() { + +function funkyFunction() { + 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 + +var theFunk = funkyFunction()() + + + + + + + + + +