Skip to content

Instantly share code, notes, and snippets.

View AndrewDubya's full-sized avatar

Andrew W AndrewDubya

View GitHub Profile
@AndrewDubya
AndrewDubya / mob-coding-challenge.js
Created April 20, 2017 02:17 — forked from jimthoburn/mob-coding-challenge.js
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 (numPeople) {
var total_count = 0;
// loop through each of the people
for (var counter = 0; counter < numPeople; counter++ ){
// shake each person’s hand who you haven’t shaken yet
@AndrewDubya
AndrewDubya / mob-coding-challenge.js
Created April 20, 2017 02:14 — forked from jimthoburn/mob-coding-challenge.js
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) {
var total_count = 0;
// loop through each of the people
for (var counter = 0; counter < people;counter++ ){
// shake each person’s hand who you haven’t shaken yet
@AndrewDubya
AndrewDubya / mob-coding-challenge.js
Created April 20, 2017 02:11 — forked from jimthoburn/mob-coding-challenge.js
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) {
var total_count = 0;
// loop through each of the people
for (var counter = 0; counter < people;counter++ ){
// shake each person’s hand who you haven’t shaken yet