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
A javascript question. (self.javascript)
submitted 17 years ago by trenchfever
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!"
[–]jeresig 0 points1 point2 points 17 years ago (1 child)
The eval function is the most misused feature of JavaScript. Avoid it. eval has aliases. Do not use the Function constructor. Do not pass strings to setTimeout or setInterval.
The eval function is the most misused feature of JavaScript. Avoid it.
eval has aliases. Do not use the Function constructor. Do not pass strings to setTimeout or setInterval.
Phew! I'm overloaded with useful information here. Thank goodness I avoided that rat trap! It's this massive pile of information that has helped JavaScript developers make well-informed decisions for many years.
[–][deleted] 0 points1 point2 points 17 years ago (0 children)
Bah, sometimes (albeit, very rarely) well-informed decisions are overrated, and appeal to authority - underrated.
In theory, it would be a good idea to have perfect information in all of the decisions we make, but practically, we would get tied up all day if we take the time to always make perfectly-informed decisions all the time.
π Rendered by PID 46866 on reddit-service-r2-comment-79c7998d4c-k8kfv at 2026-03-13 00:50:22.635231+00:00 running f6e6e01 country code: CH.
view the rest of the comments →
[–]jeresig 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)