Skip to content
Advertisement

Stuck on extracting information from an array in javascript

I have been able to create the array and average but I am running into roadblocks extracting information from the array.

I need to: Loop and find students that failed. Find the student with the highest mark

JavaScript

I was trying to add code as below to extract – but it crashes on me. Any assistance would be greatly appreciated.

JavaScript

Thanks

Advertisement

Answer

Maximum value

JavaScript

Minimum value

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement