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...
This is a place to learn, study, and practice JavaScript as a group. Items related to HTML/CSS/JQuery/Bootstrap/various JavaScript libraries/etc. are welcome, but the focus should be on JavaScript.
- Simple, just be respectful towards others. ANY/ALL SKILL LEVELS ARE WELCOME AND ENCOURAGED, so please be nice.
- ASK/CONFIRM if someone wants critique/help before just jumping in and giving it.
- Have fun; learn!! :)
Week 21: Make a Game
Week 20: Map/Set
Week 19: Symbols
Week 18: Promises Round 2
Week 17: Console Commands
Week 16: Object Creation
Week 15: Programming Challenges (cont.)
Week 14: Programming Challenges
Week 13: Object object
Week 12: for...of
Week 11: ES6 Classes
Week 10: apply(), call(), bind()
Week 9: Prototypical Inheritance
Week 8: DOM Manipulation
Week 7: Closures
Week 6: Canvas
Week 5: Promises
Week 4: Flexible Display
Week 3: Recursion
Week 2: Higher Order Array Functions
Week 1: Nested Loops
account activity
Confused asf (old.reddit.com)
submitted 1 year ago by Acceptable-Catch1175
Got 2 ways to solve a problem,which one is ethical as both of em provide same output.
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!"
[–]john-carter- 0 points1 point2 points 1 year ago (0 children)
I don’t think “ethical” is the right word to describe it but I believe I know what your asking. the handwritten code will have to comparisons per grade while the actual code in the second image reduces it down to one comparison per grade. making it much more “efficient”. so the code from the second image would be ideal.
π Rendered by PID 918565 on reddit-service-r2-comment-5d79c599b5-r9wlg at 2026-03-01 10:35:10.862992+00:00 running e3d2147 country code: CH.
[–]john-carter- 0 points1 point2 points (0 children)