O GoConqr está de visual novo! Conte para nós o que você achou.

Módulo 12 de 14 · Mídia

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.

Instruções

Para avançar no curso, envie uma tentativa deste quiz. Você pode enviá-la depois da última pergunta.

Ir para o módulo escolhido

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?