CodingTrain / website-archive

Archive of the Coding Train website (first version)
https://codingtrain.github.io/website-archive/
MIT License
5.72k stars 5.66k forks source link

Update puck.js #3627

Closed Artzified closed 2 years ago

Artzified commented 2 years ago

Using ternary operator instead of if statement (keep in mind this doesn't affect performance), basically if the condition inside the parentheses are met, multiply it by -1, else multiply it by 1

Community Contribution

Link to live project, video, or image:

image

Sharing

Instagram:

Twitter: @Artzified0

KobeLiesenborgs commented 2 years ago

We don't accept changes to the source code that don't serve a clear purpose. Feel free to submit any of your own versions of the challenge as contributions however!