¡GoConqr estrena diseño! Cuéntanos qué te parece.

Módulo 12 de 14 · Multimedia

Calculate average skills exercise

Kostas Diakogiannis

Calculate average skills exercise

O-5 Calculate average skills for every user

Create 5 users that share the basic info like:

firstname, lastname, htmlSkills, cssSkills, and jsSkills. So in total 5 arguments, inside the constructor use 3 properties. 

this.firstName = firstName;

this.lastName = lastName;

this.skills = {html: htmlSkills, css: cssSkills, jsSkills};

Create a method that calculates the average of these 3 skills and returns the average. Find a way with what you have learned to loop through the skills property object and calculate average.

Don't create a function for every object if it's possible. Use inheritance to do it in all in one fashion.

Instrucciones

Para avanzar en el curso, envía un intento de este test. Puedes enviarlo después de la última pregunta.

Ir al módulo elegido

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?