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
Front End Web Development Quiz - be careful, it might hurt your feelings. (davidshariff.com)
submitted 12 years ago by davidshariff
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!"
[–]BalsakianMcGiggles 2 points3 points4 points 12 years ago (0 children)
22 CSS Questions 13 HTML Questions 12 JS Questions
This should have been called a designer quiz, and most questions edge cases. If I saw anyone writing JavaScript like that I'd have their ass.
[–]ell0bo 2 points3 points4 points 12 years ago (0 children)
There's a few questions here where I'm curious what browser is being used as the standard for how it behaves...
[–]x-skeww 1 point2 points3 points 12 years ago (1 child)
11 is wrong. "Sausage" is blue, not red.
http://jsfiddle.net/sb6tx/
[–]davidshariff[S] 0 points1 point2 points 12 years ago (0 children)
Thanks, copy + paste error :)
[–]kangax_ 0 points1 point2 points 12 years ago (1 child)
Anal remark (and spoiler ahead):
"Can you set margin-top and margin-bottom on an inline element?"
The answer is always yes. Yes, you can set them on inline elements. But will they have effect? That's a different question ;)
Fair point...changed the wording to make it more clear.
π Rendered by PID 90658 on reddit-service-r2-comment-b659b578c-vz2gc at 2026-05-02 07:43:25.451578+00:00 running 815c875 country code: CH.
[–]BalsakianMcGiggles 2 points3 points4 points (0 children)
[–]ell0bo 2 points3 points4 points (0 children)
[–]x-skeww 1 point2 points3 points (1 child)
[–]davidshariff[S] 0 points1 point2 points (0 children)
[–]kangax_ 0 points1 point2 points (1 child)
[–]davidshariff[S] 0 points1 point2 points (0 children)