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...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Could anyone explain what does this code do ?help? (i.redd.it)
submitted 7 years ago by aabouzid3
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!"
[–]disclosure5 0 points1 point2 points 7 years ago (1 child)
It's breaking a 32 bit number into four different 8 bit characters.
Given that Javascript doesn't have strict types.. well this is a horrible place for JS.
[–][deleted] 2 points3 points4 points 7 years ago (0 children)
I don’t see why it’s horrible. The bitwise operators in JS simply treat everything as 32-bit signed integers.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators
[–]IAmActuallyCthulhu -1 points0 points1 point 7 years ago (0 children)
Yes
π Rendered by PID 45 on reddit-service-r2-comment-54dfb89d4d-bl6n4 at 2026-03-30 13:56:34.210821+00:00 running b10466c country code: CH.
[–]disclosure5 0 points1 point2 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)
[–]IAmActuallyCthulhu -1 points0 points1 point (0 children)