Given an array of numbers, return the highest of those numbers.
For example, your code should work this way:
const numbers = [2, 6.33, -61, 19, 42, 1.5];
const highest = findHighestNumber(numbers);
console.log(highest); // 42
Given an array of numbers, return the highest of those numbers.
For example, your code should work this way:
const numbers = [2, 6.33, -61, 19, 42, 1.5];
const highest = findHighestNumber(numbers);
console.log(highest); // 42
Introduction
JavaScript Basics
Numbers
Strings
Logic
Variables
Loops
Objects
Arrays
Going Further