Skip to content

Instantly share code, notes, and snippets.

@theknoosh
Forked from jimthoburn/mob-coding-challenge.js
Created April 20, 2017 02:09
Show Gist options
  • Save theknoosh/629e5fc5e8285b2b89b417f312dae163 to your computer and use it in GitHub Desktop.
Save theknoosh/629e5fc5e8285b2b89b417f312dae163 to your computer and use it in GitHub Desktop.
A saved mob programming session with Learn Teach Code!
// If we all shook each others' hands once (and only once),
// how many handshakes would that be??
// Write a function that calculates how many handshakes will
// occur for a given number of people.
function countHandshakes (people) {
// loop through each of the people
for (var counter = 0; counter < people;counter++ ){
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment