From 2690718e54ad2140ed569e0ef91685b8cda5d29f Mon Sep 17 00:00:00 2001 From: Jingchao Yu Date: Thu, 3 Dec 2020 18:56:46 +0000 Subject: [PATCH] Done. --- index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index 765e13650..54b0b95ca 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,4 @@ -var animal = 'dog' +const animal = 'dog' function myAnimal() { // You should not need to modify this function @@ -11,14 +11,13 @@ 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 } +const two = 2; function add2(n) { return n + two - - // Feel free to move things around! - const two = 2 } var funkyFunction = function() { @@ -29,4 +28,5 @@ 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();