Threshold Filter
MediumAcc. 94.5%
+25 XP 10
Data Quantization
How many students passed? How many sensors are overheating? Threshold checks are everywhere.
The Assignment
Your function receives an array measurements and a limit.
- Iterate and count values where value > limit.
- Print the final count.
01EXAMPLE 1
Input
measurements=[10, 60, 80], limit=50Output
2Explanation: 60 and 80 are > 50.
Constraints
- Strict inequality (>).
ArraysLoops
JavaScriptSystem handles I/O — write your function only
Loading...
2 Hidden
Input Arguments
measurements[10,60,80]
limit50
Expected Output
2
Click RUN to test your solution