4 ms·
How is the syntax here working? Is that an assignment operator?
by ponker 6y ago
How is the syntax here working? Is that an assignment operator?
- lucideer 6y agoIt's javascript: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions#Syntax https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
- henrikschroder 6y agoYou write the body of the function that takes t, i, x, and y as inputs for each dot. A return value of 1 or "1" or true and it shows a large white dot. A return value of 0 or false, and it shows nothing. A return value of -1 or "-1" and it shows a large red dot. Positive fractions is a smaller white dot, negative fractions is a smaller red dot. https://tixy.land/?code=i%2F256 https://tixy.land/?code=i%2F256 https://tixy.land/?code=x%21%3D5+%26%26+y+%21%3D+7 https://tixy.land/?code=x%21%3D5+%26%26+y+%21%3D+7 https://tixy.land/?code=x%2F32%2By%2F32 https://tixy.land/?code=x%2F32%2By%2F32 https://tixy.land/?code=Math.sin%28t%29 https://tixy.land/?code=Math.sin%28t%29 https://tixy.land/?code=Math.sin%28t%2Bx%29 https://tixy.land/?code=Math.sin%28t%2Bx%29 https://tixy.land/?code=Math.sin%28t%2By%29 https://tixy.land/?code=Math.sin%28t%2By%29 https://tixy.land/?code=Math.sin%28t%2Bi%29 https://tixy.land/?code=Math.sin%28t%2Bi%29