{"size": 385, "ext": "js", "max_stars_repo_path": "javascript__advanced/03.arraysAndNestedArraysLab/03.negativeAndPositiveNumbers.js", "max_stars_repo_name": "EmilianStoyanov/JavaScript", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "javascript__advanced/03.arraysAndNestedArraysLab/03.negativeAndPositiveNumbers.js", "max_issues_repo_name": "EmilianStoyanov/JavaScript", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "javascript__advanced/03.arraysAndNestedArraysLab/03.negativeAndPositiveNumbers.js", "max_forks_repo_name": "EmilianStoyanov/JavaScript", "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": 22.6470588235, "max_line_length": 44, "alphanum_fraction": 0.5064935065}
function negativeAndPositiveNumbers(input) {

    let save = [];
    for (let i = 0; i < input.length; i++) {

        if (input[i] < 0) {
            save.unshift(input[i]);
        } else {
            save.push(input[i]);
        }
    }
    for (let y of save) {
        console.log(y);
    }
}
negativeAndPositiveNumbers([7, -2, 8, 9]);
negativeAndPositiveNumbers([3, -2, 0, -1]);