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.

  1. Iterate and count values where value > limit.
  2. Print the final count.

01EXAMPLE 1

Inputmeasurements=[10, 60, 80], limit=50
Output2

Explanation: 60 and 80 are > 50.

Constraints

  • Strict inequality (>).
ArraysLoops
JavaScript
Loading...
2 Hidden

Input Arguments

measurements[10,60,80]
limit50

Expected Output

2

Click RUN to test your solution