From e56f8df9c88a98f4ac6d31773e51c91cbedffb8e Mon Sep 17 00:00:00 2001 From: Alice Tang Date: Thu, 10 Sep 2020 22:29:38 +0000 Subject: [PATCH] Done. --- index.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 765e13650..821e0158c 100644 --- a/index.js +++ b/index.js @@ -11,14 +11,14 @@ function yourAnimal() { // How can we make sure that this function // and the above function both pass? // P.S.: Hard-coding 'cat' below will not work + var animal = 'cat'; return animal } function add2(n) { - return n + two - // Feel free to move things around! const two = 2 + return n + two; } var funkyFunction = function() { @@ -29,4 +29,6 @@ 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 = theFunk(); \ No newline at end of file