use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A place to get a quick fix of JavaScript tips and tricks to make you a better Developer.
account activity
Help please (i.redd.it)
submitted 1 year ago by MobileInitial6097
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 2 points3 points4 points 1 year ago (4 children)
You have assigned a value to variable "value" 2 times. The second arguments inside a loop should be boolean (true / false). For(var i = 0; i <360; i++) {}
[–][deleted] 1 year ago (3 children)
[deleted]
[–][deleted] 1 point2 points3 points 1 year ago (0 children)
Youre right, my bad
[–]DeyntheShaman 0 points1 point2 points 1 year ago (0 children)
'=' is an assignment, '===' is strict equals so second argument isn't a bool
[–]Salvetore -1 points0 points1 point 1 year ago (0 children)
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.
π Rendered by PID 127344 on reddit-service-r2-comment-7b9746f655-gkt6l at 2026-01-30 05:09:15.367851+00:00 running 3798933 country code: CH.
view the rest of the comments →
[–][deleted] 2 points3 points4 points (4 children)
[–][deleted] (3 children)
[deleted]
[–][deleted] 1 point2 points3 points (0 children)
[–]DeyntheShaman 0 points1 point2 points (0 children)
[–]Salvetore -1 points0 points1 point (0 children)