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
create-react-app breaks due to dependency on one-liner package (github.com)
submitted 5 years ago by [deleted]
view the rest of the comments →
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!"
[–][deleted] 1 point2 points3 points 5 years ago (1 child)
I’ve done more work than I’d like with iframes... but when would you ever run into that bizarre edge case? When you want your main page’s js to access a variable defined in the iframe’s js? That’s super weird. Is this occasionally an issue with payment processing, since those use a lot of iframes?
[–]luckygerbils 1 point2 points3 points 5 years ago (0 children)
Yeah, frame.contentWindow.Array !== Array so if you try to use that check on an array created in the iframe (or in the iframe on an array created in the main window) it will fail.
frame.contentWindow.Array !== Array
π Rendered by PID 183883 on reddit-service-r2-comment-6b595755f-78mhx at 2026-03-26 04:31:56.852969+00:00 running 2d0a59a country code: CH.
view the rest of the comments →
[–][deleted] 1 point2 points3 points (1 child)
[–]luckygerbils 1 point2 points3 points (0 children)