I can`t understand what return I must to use!Help me, please!
There is only one return. You are supposed to return undefined. Here is an example for a function that returns null:
function getNameOf(value) {
if (!value) {
return null;
} else {
return value.name;
}
}
Thnx I decided this problem)