JavaScript Arrays - Finding the maximum array element - Exercise

preview_player
Показать описание
This video explains how to find the "maximum element" of an array which is in this case the greatest integer value of all the stored values in an array. We use Javascript in this video, but you should be able to easily translate the idea to other programming languages like Java, C# or PHP as well.
Рекомендации по теме
Комментарии
Автор

Hello liveyourcode, thank you so much for this video :) i want to ask you about finding the largest element in the array. Could you explain, is it the for loop stopped when its hit the arrNums[0] which is 76. I couldnt understand it cz i saw there's another value on the array that is greater than -1. Thank you so much before, please teach me how it works liveyourcode :))

behindthescenex