Skip to content
Open
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
97 changes: 52 additions & 45 deletions code/thursday.js
Original file line number Diff line number Diff line change
@@ -1,55 +1,59 @@
var day = 'Thursday',
thursday = 'thursday';

// How many equals signs does it take to muck up your code?
if (day = 'thursday') {
console.log('Test 1: Well lookee there, it\'s ' + day);
}

// The case of the failing "if" statement
if (day == 'Thursday') {
console.log('Test 2: Lo and behold, it\'s ' + day);
}

// Equals thrice, test once
if (day === 'Thursday') {
console.log('Test 3: Huh. It\'s ' + day);
}

// TODO: After commenting out the 3 conditionals above,
// uncomment this code and run it.
// var day = 'Thursday';
// var thursday = 'thursday';
//
// // How many equals signs does it take to muck up your code?
// // if (day = 'thursday') {
// // console.log('Test 1: Well lookee there, it\'s ' + day);
// // }
//
// // The case of the failing "if" statement
// if (day == 'Thursday') {
// console.log('Test 2: Lo and behold, it\'s ' + day);
// }
//
// // Equals thrice, test once
// if (day === 'Thursday') {
// console.log('Is it Friday yet?');
// } else {
// console.log('Whistle while you work!')
// console.log('Test 3: Huh. It\'s ' + day);
// }

// TODO: Add an "else if" block to check whether it's Saturday
// and console.log() a different statement for the weekend.



// TODO: Modify the conditional for Saturday to check whether
// the day is Saturday OR Sunday.



// TODO: Add an "else if" block to check whether it's Monday
// and console.log() a different statement for Monday.



// TODO: Change the string that's assigned into the day
// variable and run the code several times.
//
// // TODO: After commenting out the 3 conditionals above,
// // uncomment this code and run it.
// // if (day === 'Thursday') {
// // console.log('Is it Friday yet?');
// // } else {
// // console.log('Whistle while you work!')
// // }
//
// // TODO: Add an "else if" block to check whether it's Saturday
// // and console.log() a different statement for the weekend.
//
//
//
// // TODO: Modify the conditional for Saturday to check whether
// // the day is Saturday OR Sunday.
//
//
//
// // TODO: Add an "else if" block to check whether it's Monday
// // and console.log() a different statement for Monday.
//
//
//
// // TODO: Change the string that's assigned into the day
// // variable and run the code several times.



var days = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'];

// console.log('index 0: ' + days[0]);
// console.log('index ' + i + ': ' + days[i]);
// console.log('index 1: ' + days[1]);
// console.log('index 2: ' + days[2]);
// console.log('index 3: ' + days[3]);
// console.log('index 4: ' + days[4]);
// console.log('index 5: ' + days[5]);
// console.log('index 6: ' + days[6]);
//
// console.log('index 7: ' + days[7]);
// console.log('index 20: ' + days[20]);

Expand All @@ -67,10 +71,13 @@ var days = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday',
// 'buqjaj',
// 'ghInjaj'
// ];
var times = ['morning', 'noon', 'night'];
// TODO: Replace the "7" in "i < 7" with the length of the array
// for (var i = 0; i < 7; i++) {
// console.log('index ' + i + ': ' + days[i]);
// }
for (var i = 0; i < days.length; i++) {
for (var j = 0; j < times.length; j++) {
console.log('It is ' + times[j] + ' on ' + days[i]);
}
}


// TODO: On each iteration, use our randomly generated dayNumber
Expand Down
16 changes: 8 additions & 8 deletions code/tuesday.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ console.log('the day is: ' + day);
var monday = 'monday';
var tuesday = 'tuesday';
var wednesday = 'wednesday';
// console.log('the variable monday contains: ' + monday);
// console.log('the variable tuesday contains: ' + tuesday);
// console.log('the variable wednesday contains: ' + wednesday);
console.log('the variable monday contains: ' + monday);
console.log('the variable tuesday contains: ' + tuesday);
console.log('the variable wednesday contains: ' + wednesday);

monday = tuesday;
tuesday = wednesday;
// console.log('the variable monday contains: ' + monday);
// console.log('the variable tuesday contains: ' + tuesday);
// console.log('the variable wednesday contains: ' + wednesday);
console.log('the variable monday contains: ' + monday);
console.log('the variable tuesday contains: ' + tuesday);
console.log('the variable wednesday contains: ' + wednesday);

var number = 1;
var numberString = '1';
Expand All @@ -33,5 +33,5 @@ var numberString = '1';
// number
// numberString

// console.log('the type of variable number is: ' + typeof number);
// console.log('the type of variable numberString is: ' + typeof numberString);
console.log('the type of variable number is: ' + typeof number);
console.log('the type of variable numberString is: ' + typeof numberString);
26 changes: 19 additions & 7 deletions notes/monday.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
Make a change
Make another change
Do something else
tra la la

here's another change
We will get into the habit of uploading everynight!

"add changes"

git status
git add -p

git status
git commit -m "Add Monday notes"

git status
git remote -v

git push origin master

git status
git add -p
git status
git commit -m "add Monday notes"

more notes for a monday night!!!!
monday night
1 change: 1 addition & 0 deletions notes/thursday-frankseaman.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hello
3 changes: 3 additions & 0 deletions notes/thursday-jenniferelton.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
DRY- Don't repeat yourself

Code is always best at it shortest
40 changes: 40 additions & 0 deletions notes/tuesday.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,46 @@
# Tuesday notes

var day = 'Monday';
console.log('the day is: ' + day);

day = 'Tuesday';
console.log('the day is: ' + day);

day = 'Thursday';
console.log('the day is: ' + day);

day = 1;
console.log('the day is: ' + day);

var monday = 'monday';
var tuesday = 'tuesday';
var wednesday = 'wednesday';
// console.log('the variable monday contains: ' + monday);
// console.log('the variable tuesday contains: ' + tuesday);
// console.log('the variable wednesday contains: ' + wednesday);

monday = tuesday;
tuesday = wednesday;
// console.log('the variable monday contains: ' + monday);
// console.log('the variable tuesday contains: ' + tuesday);
// console.log('the variable wednesday contains: ' + wednesday);

var number = 1;
var numberString = '1';
// console.log('the variable number contains: ' + number);
// console.log('the variable numberString contains: ' + numberString);

// TODO: What if we look at these in the console?
// In the console, type:
// number
// numberString

// console.log('the type of variable number is: ' + typeof number);
// console.log('the type of variable numberString is: ' + typeof numberString);
=======
* Student questions:
* for loops vs. for/in loops (will discuss Wednesday)
* syntax & resources (Duckett book, MDN)
* case sensitivity in boolean comparisons


21 changes: 21 additions & 0 deletions notes/wednesday.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

When working on a big project, you will not be able to work on the original repository. You CAN fork(clone) a copy to your own computer. You can make the changes or new code to your forked version. When you are done with your changes, you will have to do a "pull" from the original repository.
To do this,
git pull upstream "name of the original repository".
Then finish your code. turn into the powers that be.

to create a branch
git branch 'name of file'
git checkout wednesday
git status

functions
named functions


object constructors
paramenters-how many

this is a change for wednesday
this is getting better

Empty file added schedule/r
Empty file.