From a1ed71ae8c14086287477f93d7bd1d352e3f619d Mon Sep 17 00:00:00 2001 From: Kyle Samuel Date: Fri, 5 Feb 2021 16:41:31 +0000 Subject: [PATCH] Done. --- index.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 765e136507..3281a83225 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) { + const two = 2 return n + two - // Feel free to move things around! - const two = 2 } 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()(); + +