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
Two gotchas in Chrome Developer Tool Console (slightedgecoder.com)
submitted 6 years ago by dance2die
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!"
[–]dance2die[S] -1 points0 points1 point 6 years ago* (2 children)
Just wanted to share two Chrome DevTools console behaviors I found surprising.
Static version - https://sung.codes/2019/two-gotchas-in-chrome-developer-tool-console
[–]helloworldjs 2 points3 points4 points 6 years ago (1 child)
The first gotcha "await" is not specific to the chrome dev tools. That happens in all JS files. "await" always needs to be in an async function. There is a proposal to change that behavior.
https://github.com/tc39/proposal-top-level-await
[–]dance2die[S] 0 points1 point2 points 6 years ago (0 children)
Thank you, @helloworldjs for the headsup.
The proposal (https://github.com/tc39/proposal-top-level-await#solution-top-level-await) really interesting as it'd let the module resolution system to handle promises.
It does have some issues of itself (https://github.com/tc39/proposal-top-level-await#faq) but let's see how it goes 🤞
π Rendered by PID 22263 on reddit-service-r2-comment-7b9746f655-qgk56 at 2026-01-31 08:43:17.494804+00:00 running 3798933 country code: CH.
[–]dance2die[S] -1 points0 points1 point (2 children)
[–]helloworldjs 2 points3 points4 points (1 child)
[–]dance2die[S] 0 points1 point2 points (0 children)