Skip to content

Commit d114f79

Browse files
committed
ejercicio11
1 parent 26a13aa commit d114f79

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

ejercicio11.js

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
class Estudiante {
3+
constructor (nombre, asignaturas){
4+
this.nombre = nombre,
5+
this.asignaturas = asignaturas;
6+
}
7+
}
8+
9+
const nuevoEstudiante = new Estudiante ("Ivan", "Javascript, HTML, CSS")
10+
const nuevoEstudiante2 = new Estudiante ("Car", "Javascript")
11+
12+
const obtenDatos = [nuevoEstudiante, nuevoEstudiante2];
13+
14+
console.log(obtenDatos)

0 commit comments

Comments
 (0)