JS Reminder APIs Quiz2

Youngmin Park
Mar 7, 2021

refer below picture from Q5 to Q10

Q5. Find a student with the score 90

A5: use ‘find’

find

Q6. make an array of enrolled students

A6: use ‘filter’

filter

Q7. make an array containing only the students’ scores

result should be: [45, 80, 90, 66, 88]

A7: use ‘map’

map

Q8. check if there is a student with the score lower than 50

A8: use ‘some’

some

There is one student has score of 45 thus it return ‘true’

Q9. compute students’ average score

A9: use ‘reduce’

reduce

Q10. make a string containing all the scores

result should be: ’45, 80, 90, 66, 88'

A10: use ‘map’ and ‘join’

map, join

Bonus! do Q10 sorted in ascending order

.sort

done!!

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Youngmin Park
Youngmin Park

No responses yet

Write a response