Hello everyone, i need help, where’re the falsy value in the array, since the console logged false
Where’re the falsy value in the array
Hello everyone, i need help, where’re the falsy value in the array, since the console logged false
Where’re the falsy value in the array
Hi @bushra.ghames2707
I’d ask you to rerun this, I tried exact same thing and it returns true to me !!
The every
method is checking that all of the the values in the array are explicitly not equal to true
. This will always return true
unless one (or more) of your array values is explicitly set to true
(e.g. ["red", true, "Red"]
).
Perhaps it would be easier if you can explain what you are actually trying to do with your code, as I’m not sure of your intentions.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.