Checking the array

Report a typo

In this task, you have an array numbers that consists of a few numbers. You need to check whether all the numbers are bigger than 10.

const numbers = [20, 30, 32, 23];



function checkNumber(number) {
  return number > 10;
}

Write the code that checks all items in the array and prints the result to the console.

Enter a short text
___

Create a free account to access the full topic