Please help me out in this in task 122. I'm not getting the question.
AnkitSoni it's hard to remember all the tasks by their ids, could you be more specific about the issue you're having?
ids
How can I compare the less evil factor. like I'm using the if-else condition. But still I'm getting wrong answer.
AnkitSoni it's likely that you're comparing the whole objects rather than comparing the objects' properties.
It'll look something like if (obj1.prop > obj2.prop)
if (obj1.prop > obj2.prop)
if(threat1.evilFactor < threat2.evilFactor){ return threat1
}else{ return threat2 }
mtawa how much would one learn by copy-pasting the correct solution instead of bumping their head against the brick wall and eventually getting to the correct answer?