This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
** Week One Outcomes ** | |
** Development Environment ** | |
can explain differences between a "github repo" and a "gist" | |
can explain why gists are used instead of repos | |
can create a gist | |
can fork a gist | |
can clone a gist | |
can explain what "gists" are and why they are used | |
can handle arguments passed-in via commandline | |
** Variables and expressions ** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function average(list) { | |
var sum = 0; | |
for (var num in list) { | |
sum += list[num]; | |
} | |
return sum / list.length; | |
} | |
console.log(average([20, 21, 220, 54])); |