From 61667cf0dbf37f8057fbe569c8a9ac03bf26029a Mon Sep 17 00:00:00 2001 From: Clifton Davies Date: Fri, 19 Jan 2018 23:06:29 +0000 Subject: [PATCH] Done. --- beyoncesAccountant.js | 7 +++---- variables.js | 4 +--- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/beyoncesAccountant.js b/beyoncesAccountant.js index 4029517..9839472 100644 --- a/beyoncesAccountant.js +++ b/beyoncesAccountant.js @@ -1,13 +1,12 @@ +var beyoncesMoney = 500 + 750 + 3000 + 5100 + 12980 + 9087 + 50000 console.log("Dear Beyonce,") console.log("We have calculated your total earnings this year.") console.log("You have earned " + beyoncesMoney) -console.log("Of" + 500 + 750 + 3000 + 5100 + 12980 + 9087 + 50000 + " some portion derives from your live performances.") -console.log("Of" + 500 + 750 + 3000 + 5100 + 12980 + 9087 + 50000 + " some portion derives from music sales.") +console.log("Of" + beyoncesMoney + " some portion derives from your live performances.") +console.log("Of" + beyoncesMoney + " some portion derives from music sales.") // DON'T DO THIS PART YET: // Now that we understand what a variable is // rewrite the above lines of code using a variable to store the // total sum, so that you don't have to add up all those numbers three times - - diff --git a/variables.js b/variables.js index 88e0d5e..e6f13d8 100644 --- a/variables.js +++ b/variables.js @@ -5,11 +5,9 @@ var personality = "awesome" console.log(personality) // -personality = "fabulous"; +personality = "logical"; console.log(personality); // Your Turn! // change the value of the `personality` variable to something that describes you // and console.log the new value - -