From 0d2bb1b3f6bd3cacbbbb20775f51e21c4af0d0c4 Mon Sep 17 00:00:00 2001 From: Muneeb Hassan Date: Tue, 21 Feb 2017 04:51:21 +0000 Subject: [PATCH] Done. --- index.js | 8 ++++---- test/index-test.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index cbe7236..bc55729 100644 --- a/index.js +++ b/index.js @@ -1,9 +1,9 @@ -var greeting = ""; +var greeting = "Hello, everybody!"; var specialGuest = "Neil deGrasse Tyson" -var greetSpecialGuest = "" + specialGuest + "!"; +var greetSpecialGuest = "Hello, " + specialGuest + "!"; -var topic = "space"; +var topic = "Let's talk about space"; -var conversation = `${topic}`; +var conversation = "Let's talk about " + `${topic}`; diff --git a/test/index-test.js b/test/index-test.js index de7bc32..69ccbba 100644 --- a/test/index-test.js +++ b/test/index-test.js @@ -9,5 +9,5 @@ it('concatenates strings to greet a special guest in `greetSpecialGuest`', funct }) it('interpolates a string in `conversation`', function() { - expect(conversation).toEqual(`Let's talk about ${topic}.`) + expect(conversation).toEqual(`Let's talk about ${topic}`) })