Hi I just started on the array chapter. It said that array’s can contain strings, numbers and booleans.
So I started to mess around a little before moving on to section 2 of the array chapter.
let booleanArray = [true, false, false]
console.log(booleanArray - 1) // logs -1
I though it would log true.
Why does this happen? Thanks in advance.