From b787a75b4b16007eafa9de6c9bdb2c0650d1ecff Mon Sep 17 00:00:00 2001 From: Donna Cerrio Date: Thu, 28 Jun 2018 23:28:02 +0000 Subject: [PATCH] Done. --- index.js | 10 ++++++++-- test/index-test.js | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index bee567d..34c7d4d 100644 --- a/index.js +++ b/index.js @@ -1,3 +1,4 @@ + var animal = 'dog' function myAnimal() { @@ -8,14 +9,16 @@ 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 + var animal='cat' return animal } +const two = 2 function add2(n) { return n + two // Feel free to move things around! - const two = 2 + } var funkyFunction = function() { @@ -26,4 +29,7 @@ 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()() + +myAnimal() +yourAnimal() \ No newline at end of file diff --git a/test/index-test.js b/test/index-test.js index 654dbac..4fe66f0 100644 --- a/test/index-test.js +++ b/test/index-test.js @@ -1,3 +1,4 @@ + /*global describe, it */ describe('Fix the Scope', function() {