GoConqr has a new look! Let us know what you think.

Module 12 of 14 · Media

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.

Instructions

You must submit an attempt for this quiz to progress. You can submit it after the last question.

Go to the chosen module

Feedback

What is it about?

What do you think of the new look?

How do you like it?