{"size": 219, "ext": "js", "max_stars_repo_path": "SoftUni Exercises/Syntax, Functions and Statements/03. Same Numbers/script.js", "max_stars_repo_name": "Petrov7/JavaScript-Exercises", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "SoftUni Exercises/Syntax, Functions and Statements/03. Same Numbers/script.js", "max_issues_repo_name": "Petrov7/JavaScript-Exercises", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "SoftUni Exercises/Syntax, Functions and Statements/03. Same Numbers/script.js", "max_forks_repo_name": "Petrov7/JavaScript-Exercises", "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": 27.375, "max_line_length": 54, "alphanum_fraction": 0.5799086758}
function sameNumbers(number) {
    let arr = number.toString().split("");
    let sum = arr.map(Number).reduce((a, b) => a + b);

    return `${arr.every(x => x === arr[0])}\n${sum}`; 
}

console.log(sameNumbers(1234));