{"size": 517, "ext": "js", "max_stars_repo_path": "highest-scoring-word/solution.js", "max_stars_repo_name": "jlwilliams46/code-wars", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "highest-scoring-word/solution.js", "max_issues_repo_name": "jlwilliams46/code-wars", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "highest-scoring-word/solution.js", "max_forks_repo_name": "jlwilliams46/code-wars", "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": 19.8846153846, "max_line_length": 97, "alphanum_fraction": 0.3520309478}
function high(x) {

    const all = x.split(' ');
    let hs = 0,
        hsw = '',
        i = 0,
        l = all.length;

    if (!x) return '';

    for (i; i < l; i++) {
        const score = all[i]
            .split('')
            .map((e) => {
                return (e.toLowerCase().match(/[a-z]/i)) ? e.toLowerCase().charCodeAt(0) - 96 : 0
            })
            .reduce((a, b) => a + b, 0);

        if (score > hs) {
            hs = score;
            hsw = all[i];
        }
    }

    return hsw;
}