{"size": 1202, "ext": "js", "max_stars_repo_path": "main.js", "max_stars_repo_name": "charlesgmont/poo-basico", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "main.js", "max_issues_repo_name": "charlesgmont/poo-basico", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "main.js", "max_forks_repo_name": "charlesgmont/poo-basico", "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.3728813559, "max_line_length": 62, "alphanum_fraction": 0.5665557404}
// Objeto literal

const natalia = {
    name : "Natalia",
    lastName: "Lopez",
    age: 20,
    cursosAprobados: [
        "Curso definitivo HTML",
        "Curso Práctio de HTML y CSS",
    ],
    aprobarCurso(nuevoCursito) {
        this.cursosAprobados.push(nuevoCursito);
    },
};

// Prototipos

function Student(name, lastName, age, cursosAprobados) {
    this.name = name;
    this.lastName = lastName;
    this.age = age;
    this.cursosAprobados = cursosAprobados;

    Student.prototype.aprobarCurso = function (nuevoCursito) {
        this.cursosAprobados.push(nuevoCursito);
    };
    
    const juanita = newStudent(
        "Juanita Alejandra",
        5,
        [
            "Curso producción de videojuegos",
        ],
    );

};

// Prototipos de la sintaxis clases

class Student2 {
    constructor({
        name,
        age, 
        cursosAprobados = [],
        email,
    }) {
        this.name = name;
        this.lastName = lastName;
        this.email = email;
        this.age = age;
        this.cursosAprobados = cursosAprobados;
    };

}
    const miguelito = new Student2({
        email: "miguelito@plazi.com",
        age: 28,
        name: "Miguel",
    });