r/learnjavascript • • Oct 17 '26

I might be the dumbest programmer ever.

if (windowStatus == 1) 
        {
            windowStatus = 1
        }
25 Upvotes

15 comments sorted by

View all comments

6

u/Aggressive_Ad_5454 Oct 17 '26

In a weakly typed language like Javascript, your code actually does something that might be useful. Look up the difference between `==` and `===` to learn what it does.

Plus, no way you’re the dumbest programmer ever. That would be me. 😇