|
|
@ -345,6 +345,7 @@ const scores = [
|
|
|
|
const score = scores.find((user) => {
|
|
|
|
const score = scores.find((user) => {
|
|
|
|
return user.score > 80
|
|
|
|
return user.score > 80
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
console.log(score) // { name: "Asabeneh", score: 95 }
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
### some
|
|
|
|
### some
|
|
|
@ -581,4 +582,4 @@ console.log(users); // sorted ascending
|
|
|
|
|
|
|
|
|
|
|
|
🎉 CONGRATULATIONS ! 🎉
|
|
|
|
🎉 CONGRATULATIONS ! 🎉
|
|
|
|
|
|
|
|
|
|
|
|
[<< Day 8](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/08_Day/08_day_objects.md) | [Day 10 >>](#)
|
|
|
|
[<< Day 8](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/08_Day/08_day_objects.md) | [Day 10 >>](#)
|
|
|
|