I understand the use of ! when we are implementing it in code like != or !==
etc
But I'm just wondering what it means when it is put before something like if(!arr[i]){"do this}
thank you
I understand the use of ! when we are implementing it in code like != or !==
etc
But I'm just wondering what it means when it is put before something like if(!arr[i]){"do this}
thank you
! means "not." It means this in each of these contexts. != is not equal. !(arr[i]) means when arr[i] does not equate to true.