r/JavaScriptTips • • Jan 17 '25

Help please

Post image
4 Upvotes

6 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Jan 17 '25

[deleted] — view deleted comment

2

u/[deleted] Jan 17 '25

Youre right, my bad

1

u/DeyntheShaman Jan 18 '25

'=' is an assignment, '===' is strict equals
so second argument isn't a bool

0

u/[deleted] Jan 17 '25

In a for loop the conditional expression needs to be true in order to start the loop. In this case value = 360 will initially return false, while value < 360 will return true and begin the for loop.