← Back to challenges

Less Than 100?

JavaScriptMediummathvalidationlanguage_fundamentals

Instructions

Given two numbers, return true if the sum of both numbers is less than 100. Otherwise return false.

Examples

lessThan100(22, 15) ➞ true
// 22 + 15 = 37

lessThan100(83, 34) ➞ false
// 83 + 34 = 117

lessThan100(3, 77) ➞ true

Notes

N/A

javascript
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Buggy Code (Part 5)