← Back to challenges

Less Than 100 Array Remix

JavaScriptHardlanguage_fundamentalsmathvalidationarrays

Instructions

Given an array of numbers, return true if the sum of the array is less than 100; otherwise return false.

Examples

arrayLessThan100([5, 57]) ➞ true

arrayLessThan100([77, 30]) ➞ false

arrayLessThan100([0]) ➞ true

Notes

N/A

javascript
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: How Many Digits?