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() {