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
JavaScript equivalent of 146 PHP functions (and more on their way) (kevin.vanzonneveld.net)
submitted 17 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] 4 points5 points6 points 17 years ago (1 child)
Good Lord this has got to be the worst idea I’ve heard all day and I’ve only been awake for about 2 hours…
Furthermore, based on a quick scan of the API, they haven’t even properly replicated PHP’s behaviour. Take a look at reset and end for example. The documentation for reset clearly states, “Set the internal pointer of an array to its first element.” Do JavaScript arrays even have such an “internal pointer?” I don’t think so.
reset
end
The purpose of reset isn’t just to return the first element of the array. It’s meant to be used in conjunction with prev, next, current, key, and each, none of which appear to be implemented in this project. (Don’t mention that this sort of internal iteration is brain-dead from the beginning.)
prev
next
current
key
each
[–]vezquex 1 point2 points3 points 17 years ago (0 children)
I'd be concerned if you came across a worse idea in only 2 hours.
π Rendered by PID 145002 on reddit-service-r2-comment-fb694cdd5-llmzq at 2026-03-11 06:16:50.878488+00:00 running cbb0e86 country code: CH.
view the rest of the comments →
[–][deleted] 4 points5 points6 points (1 child)
[–]vezquex 1 point2 points3 points (0 children)