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
// 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 |
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
// 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 |
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
// 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 |
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
// 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++ ){ | |
} |
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
// 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++ ){ | |
} |
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
// 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++ ){ | |
} |
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
// 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 count(){ | |
for (people = 5; people > ) | |
} | |
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
// Write a function that calculates how many handshakes will | |
// occur with a given number of people | |