Array.prototype.every() in JavaScript

Easy
13
84.6% Acceptance

In this lab, you will learn how to use the Array.prototype.every() function in JavaScript to check if all elements of an array fulfill a certain condition. You will create a function named checkPositive that accepts an array of numbers and returns true if all the numbers are positive and false otherwise. Make sure to use ESM syntax and follow the instructions given in the challenges.