{"size": 768, "ext": "js", "max_stars_repo_path": "lesson 4/js5-pointers.js", "max_stars_repo_name": "hamburgcodingschool/L2C-1902", "max_stars_repo_stars_event_min_datetime": "2019-02-15T17:39:39.000Z", "max_stars_repo_stars_event_max_datetime": "2019-02-17T12:20:50.000Z", "max_issues_repo_path": "lesson 4/js5-pointers.js", "max_issues_repo_name": "hamburgcodingschool/L2C-1902", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "lesson 4/js5-pointers.js", "max_forks_repo_name": "hamburgcodingschool/L2C-1902", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 3, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 15.0588235294, "max_line_length": 59, "alphanum_fraction": 0.5729166667}

// function myTest(a) {

//     a = 10;

// }

// var testVar = 5;

// myTest(testVar);

// console.log(testVar)

function equalArrays(array1, array2) {
    if (array1 == array2) {
        return true;
    }

    if (array1.length != array2.length) {
        return false;
    }

    for (var i = 0; i < array1.length; i++) {
        if (array1[i] != array2[i]) {
            return false;
        }
    }

    return true;
}

function myOtherTest(array1) {
    array1[2] = "Joe";
}

var names = ["Kat", "Patrick", "Aneesh", "Helder"];

console.log(names);

myOtherTest(names);

console.log(names);

var otherNames = ["Katherina", "Patrick", "Joe", "Helder"];

console.log(otherNames);

console.log(names == otherNames);
console.log(equalArrays(names, otherNames));

