Find the Maximum

Facile · javascript · javascript · arrays

Write solution(nums) that returns the largest number in a non-empty array.

Tests d'exemple

solution([1, 5, 2]) // => 5

Soumettre

Classement