Answer the question
In order to leave comments, you need to log in
What to answer in an interview when asked about the violation of the deadlines of the task?
At two interviews, they asked what would you do if you realized that you weren’t on time with the task? What response is expected from the developer?
Answer the question
In order to leave comments, you need to log in
It looks like you will benefit from reading The Ideal Programmer by Robert Martin.
What response is expected from the developer?something like this:
Your honor! Guilty! I'll fix it! Do not order to be executed! I promise not to sleep for three days, but to solve the problem!
At two interviews, they asked what would you do if you realized that you weren’t on time with the task? What response is expected from the developer?
What position are you interviewing for?
If an engineer, then tell the manager.
If on the manager, then try to parallelize the task, inform the RP about the potential risk, speed up 5 other tasks so that the norm is fulfilled.
If for the project manager, then provide a temporary option, work out the option of giving the task to a contract, replace the task, transfer forces to tasks that will give a similar economic effect from the overdue task, include this activity in the schedule.
The handler function you pass to forEach is executed in the context of the current array element.
If the thisArg parameter was passed to the forEach() method, it will be used as the this value when calling callback . Otherwise, undefined will be used as the this value. Ultimately, the value of this as seen from the callback function is determined according to the usual rules for determining this as seen from the function.
//'use strict';
let group = {
title: "Наш курс",
students: ["Вася", "Петя", "Даша"],
showList: function() {
this.students.forEach(function(student) {
alert(group.title + ': ' + student); // будет ошибка
})
}
}
group.showList.call(group);
Use console.log();
In your case, if you write console.log(this) immediately after showList: function() { ...
, the object will be displayed in the console. Accordingly, try this:
group.students.forEach(function(student) {
alert(group.title + ': ' + student);
})
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question