function locationFinder() {

        // initializes an empty array
        var locations = [];

        // adds the location of birth and death:
        locations.push(bio.birth.location);
        locations.push(bio.death.location);

        // iterates through school locations and appends each location to the locations array
        var lengthSchools = education.schools.length;
        for (var school = 0; school < lengthSchools; school++) {
            locations.push(education.schools[school].location);
        }

        // iterates through work locations and appends each location to the locations array
        var lengthJobs = work.jobs.length;
        for (var job = 0; job < lengthJobs; job++) {
            locations.push(work.jobs[job].location);
        }

        return locations;
    }
// locationFinder() returns an array of every location string from the JSONs written for bio, education, and work.
locationFinder() returns an array of every location string from the JSONs written for bio, education, and work.
locationFinder () returns an array of every location string from the JSONs written for bio education and work .
function locationFinder() {
        var locations = [];
        locations.push(bio.birth.location);
        locations.push(bio.death.location);
        var lengthSchools = education.schools.length;
        for (var school = 0; school < lengthSchools; school++) {
            locations.push(education.schools[school].location);
        }
        var lengthJobs = work.jobs.length;
        for (var job = 0; job < lengthJobs; job++) {
            locations.push(work.jobs[job].location);
        }
        return locations;
    }
function locationFinder ( ) { var locations = [ ] ; locations . push ( bio . birth . location ) ; locations . push ( bio . death . location ) ; var lengthSchools = education . schools . length ; for ( var school = 0 ; school < lengthSchools ; school ++ ) { locations . push ( education . schools [ school ] . location ) ; } var lengthJobs = work . jobs . length ; for ( var job = 0 ; job < lengthJobs ; job ++ ) { locations . push ( work . jobs [ job ] . location ) ; } return locations ; }
locationFinder() returns an array of every location string from the JSONs written for bio, education, and work.
locationFinder () returns an array of every location string from the JSONs written for bio education and work .
// initializes an empty array // adds the location of birth and death: // iterates through school locations and appends each location to the locations array // iterates through work locations and appends each location to the locations array