r/javaScriptStudyGroup • • Sep 27 '17

Why is !=== not valid JS?

I have always seen !== and never !===.

2 Upvotes

6 comments sorted by

View all comments

2

u/kyle_Ziulkowski Sep 27 '17

!=== doesnt mean anything

1

u/[deleted] Sep 27 '17

But why? Wouldn't it mean 'Not equal in type and value'?

1

u/kyle_Ziulkowski Sep 27 '17

Theres 2 ways to express not equal. != or !==

Slight variations as to how each comparison is performed behind the scenes.