{"size": 311, "ext": "js", "max_stars_repo_path": "Js Fun/String Operations/practice/5.js", "max_stars_repo_name": "GeorgiHristov1990/SoftUni-Homework", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "Js Fun/String Operations/practice/5.js", "max_issues_repo_name": "GeorgiHristov1990/SoftUni-Homework", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Js Fun/String Operations/practice/5.js", "max_forks_repo_name": "GeorgiHristov1990/SoftUni-Homework", "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.2941176471, "max_line_length": 46, "alphanum_fraction": 0.5337620579}
function replace(string) {
    
    let text = '';
    
  for (let i = 0; i < string.length-1; i++) {
      
      if (string[i] !== string[i+1]) {
           text = text.concat(string[i])
      }
  }
  text = text.concat(string[string.length-1]);
  console.log(text);
  
}


replace('aaaaabbbbbcdddeeeedssaa');