The Zero Floor

MediumAcc. 92.1%
+25 XP 10

The Baseline

Finding the minimum is the inverse of finding the maximum.

The Assignment

Your function receives an array temps.

  1. Initialize min with the first value.
  2. Iterate and update min if a smaller value is found.
  3. Print the result.

01EXAMPLE 1

Inputtemps = [30, 10, 50]
Output10

Explanation: 10 is the lowest.

Constraints

  • Manual loop implementation required.
ArraysLoopsSearch
JavaScript
Loading...
1 Hidden

Input Arguments

temps[30,10,50]

Expected Output

10

Click RUN to test your solution