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:
Sharing
[x] I would be happy to have my project shared on The Coding Train's social media!
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!
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:
Sharing
Instagram:
Twitter: @Artzified0