The not operator avoid us from writing the else statemet like in this example:
In the example above we ask with our if(!apples) : if apples is falsey run this argument, so we avoid to write this:
Another occasion where it can be very useful is when we need to convert a Truthy and Falsey values in True and False.
In the example above we convert first apples(falsey) into apples(true) with our first not operator(!), with the second not operator we convert our apples(true) in apples(false), then our apples(falsey) has become apples(false). The opposite happened for our apples(truthy).
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)