{"size": 231, "ext": "js", "max_stars_repo_path": "Handshake/ok.js", "max_stars_repo_name": "ue/hackerrank-weekly-challenge", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "Handshake/ok.js", "max_issues_repo_name": "ue/hackerrank-weekly-challenge", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Handshake/ok.js", "max_forks_repo_name": "ue/hackerrank-weekly-challenge", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 28.875, "max_line_length": 46, "alphanum_fraction": 0.6363636364}
function handshake(numberOfPeople) {
    let handshakeCount = 0;
    for (let i = 1; i < numberOfPeople; i++) {
        const personLeft = numberOfPeople - i;
        handshakeCount += personLeft;
    }
    return handshakeCount;
}