From cd651f42e831fe4b74fbc84b0920636fbb6f49c6 Mon Sep 17 00:00:00 2001 From: Troy Lawrence Date: Tue, 23 Jan 2018 19:16:01 +0000 Subject: [PATCH] Done. --- index.js | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) 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 +