var farm 10 10 10 if farm farm farm console log YES else console log N

1
2
3
4
5
6
var farm = [10,10,10];
if ((farm[1]+farm[2])<=farm[0]){
console.log("YES");
}else{
console.log("NO");
}