r/learnjavascript • u/Any_Abalone_9781 • Oct 17 '26
I might be the dumbest programmer ever.
if (windowStatus == 1)
{
windowStatus = 1
}
25
Upvotes
r/learnjavascript • u/Any_Abalone_9781 • Oct 17 '26
if (windowStatus == 1)
{
windowStatus = 1
}
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. 😇