{"size": 471, "ext": "js", "max_stars_repo_path": "Javascript_The-Recent-Parts/template-strings/ex.js", "max_stars_repo_name": "soyrenzo/JavaScript-The-Hard-Parts", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "Javascript_The-Recent-Parts/template-strings/ex.js", "max_issues_repo_name": "soyrenzo/JavaScript-The-Hard-Parts", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Javascript_The-Recent-Parts/template-strings/ex.js", "max_forks_repo_name": "soyrenzo/JavaScript-The-Hard-Parts", "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": 18.84, "max_line_length": 62, "alphanum_fraction": 0.5647558386}
function upper(strings, ...values) {

  const uppercased = values.map((word) => word.toUpperCase());

  ret = strings.reduce((ret, val, i) => {
    if (i > 0) {
      ret += uppercased[i - 1];
    }
    ret += strings[i];

    return ret;
  });

  return ret;
}

const name = 'kyle',
  twitter = 'getify',
  topic = 'JS Recent Parts';

console.log(
  upper`Hello ${name} (@${twitter}), welcome to ${topic}!` ===
    'Hello KYLE (@GETIFY), welcome to JS RECENT PARTS!'
);
