Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Done #85

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Done #85

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions beyoncesAccountant.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
var totalSum = 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" + totalSum + " some portion derives from your live performances.")
console.log("Of" + totalSum + " 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


4 changes: 1 addition & 3 deletions variables.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Beyonce";
console.log(name);

var personality = "awesome"
var personality = "kind"
console.log(personality)
//

Expand All @@ -11,5 +11,3 @@ console.log(personality);
// Your Turn!
// change the value of the `personality` variable to something that describes you
// and console.log the new value