GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Modul 12 von 14 · Medien

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.

Anleitung

Um im Kurs weiterzukommen, sende einen Versuch dieses Quiz ab. Du kannst ihn nach der letzten Frage absenden.

Zum gewählten Modul

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck