{"size": 740, "ext": "js", "max_stars_repo_path": "Programamos/script.js", "max_stars_repo_name": "AcamicaDWFSOnlineTeam1/23_Objetos", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "Programamos/script.js", "max_issues_repo_name": "AcamicaDWFSOnlineTeam1/23_Objetos", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Programamos/script.js", "max_forks_repo_name": "AcamicaDWFSOnlineTeam1/23_Objetos", "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": 20.5555555556, "max_line_length": 53, "alphanum_fraction": 0.5905405405}
class Persona {
    constructor(nombre, apellido, edad) {
        this.nombre = nombre;
        this.apellido = apellido;
        this.edad = edad;
    }
    
    fullName() {
        //return this.nombre + ' ' + this.apellido;
        return `${this.nombre} ${this.apellido}`;
    }

    esMayor() {
        let mayorEdad = false;
        if (this.edad >= 18) {
            mayorEdad = true;
        }
        return mayorEdad;
    }
}

let juanPerez = new Persona('Juan', 'Perez', 19);
console.log(juanPerez);

let airanFranco = new Persona('Airan', 'Franco', 15);
console.log(airanFranco);

console.log(juanPerez.fullName());
console.log(juanPerez.esMayor());

console.log(airanFranco.fullName());
console.log(airanFranco.esMayor());



