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 #90

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

Done #90

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
6 changes: 4 additions & 2 deletions beyoncesAccountant.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
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:
Expand Down
3 changes: 1 addition & 2 deletions closure.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
function parent() {
var innerVariable = "Go to your room!";
console.log(inaccessible)
return function childe() {
return function child() {
var inaccessible = "**sneaks out the bedroom window**";
return innerVariable;
}
Expand Down
28 changes: 0 additions & 28 deletions scope.js
Original file line number Diff line number Diff line change
@@ -1,28 +0,0 @@
function setSpeciesVariable() {
var species = "dog";
}

function dogInfo(){
name = "Fido";
console.log("Species is " + species);
console.log("Name is " + name);
}

setSpeciesVariable();
dogInfo();

function setSpeciesVariable() {
species = "cat"
}

function catInfo() {
var name = "Felix"
var mood = "sleepy"
console.log("Species is " + species);
console.log("Name is " + name);
console.log("Mood is " + mood)
}

setSpeciesVariable();
catInfo();

2 changes: 1 addition & 1 deletion 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 = "friendly"
console.log(personality)
//

Expand Down