How To Find The Max Number In An Array (Easy Javascript Algorithm Problem)

How To Find The Max Number In An Array (Easy Javascript Algorithm Problem)

Coding David

54 года назад

299 Просмотров

Write a function that takes in an array of numbers and outputs the maximum number.

Ex.
Input: [1, 2, 3]
Output: 3

Input [3, 6, 4, 5, 2, ,1]
Output:6

Here is my video explanation of how I solved the problem in Javascript.

Let's Connect 💯:
════════════════════════════
LinkedIn: https://www.linkedin.com/in/anusontarangkul/
TikTok: https://www.tiktok.com/@david.anu_
Instagram: https://www.instagram.com/david.anu_/
GitHub: https://github.com/anusontarangkul
Ссылки и html тэги не поддерживаются


Комментарии: