Skip to content

Instantly share code, notes, and snippets.

View davejellicoe's full-sized avatar

Dave Jellicoe davejellicoe

View GitHub Profile
@davejellicoe
davejellicoe / average.js
Last active July 25, 2022 17:56
javascript samples from week 1
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]));
@davejellicoe
davejellicoe / Week One Objectives.odt
Last active December 11, 2016 13:25
LHL Outcomes Explored
** 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 **
@davejellicoe
davejellicoe / 0_reuse_code.js
Created October 7, 2016 15:04
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console