I have a function that receives as an argument an array of numbers called 'numbers' and must return an array containing the smallest number in the 'numbers' array at position zero and the largest number in the array 'numbers' in position 1.
maxValue = Math.max(numbers)
minValue = Math.min(numbers)
varResult = ([minValue, maxValue]);
for (let i = 0; i < numbers.length; i++) {
console.log (varResult);
}
} ```