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

Module 6 of 18 · Media

Candidate trainer problem

Kostas Diakogiannis

Candidate trainer problem

A-2 Candidate trainer

Imagine that you are the manager of a school that teaches 5 topics. Math, science, history, geography and programming. For the first 4 topics you have already found the teachers to conduct the lessons and now you are actively looking for the fifth one.

First of all create an object that holds the topics as keys and the fullname of the teacher as a string value. Thus you don't forget from now on who is going to teach what.

Then create a method inside that object that accepts 2 arrays.

These arrays contain the programming languages that candidates for the programming position have. The length of these languages can be anything. A candidate could have mastered 3 languages, the other one four. Just write these languages as strings inside the arrays.

The first and second element of each of these arrays should contain the firstname and the lastname of each of the candidates as well. ex.

const  Joe = ['John', 'Doe' , 'PHP', 'Ruby'];

const Jane = ['Jane', 'Doe', 'Python', 'Java', 'C'];

The method should compare, who knows more programming languages under his/her belt and puts his/her name in the fifth property of the object (under the other topics with their corresponding teachers).

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?