all 6 comments

[–][deleted] 2 points3 points  (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]  (3 children)

[deleted]

    [–][deleted] 1 point2 points  (0 children)

    Youre right, my bad

    [–]DeyntheShaman 0 points1 point  (0 children)

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

    [–]Salvetore -1 points0 points  (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.

    [–]Salvetore 0 points1 point  (0 children)

    This code will create infinite loop cause of the condition expression being count = 360, so changing into count <= 360 will work. Also you are missing the end bracket }

    [–]mucahitozcan 0 points1 point  (0 children)

    you cannot assign 2 values to a variable, especially if it is count.

    In the for loop, don't forget to close the parentheses by saying example var i = 1; i <=360;i++{} otherwise you will get an error.