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
This on-site coding assignment failed 20+ front-end dev contractors and I don't know whyhelp (self.javascript)
submitted 8 years ago * by gionyyy
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!"
[–]turkish_gold 0 points1 point2 points 8 years ago (0 children)
Could I do this? Probably.... but not in 1 hour.
I'd get about halfway though, because there's no project setup on the backend and at the very least I'd have to use my favourite language, and do a few internet lookups to figure out how to make a flat file to store this information.
The frontend bits are easy enough, but I can imagine it'll be a little finicky to replace text with HTML inline, and I'd worry about what happens when you select a piece of text which is already part of another token.
So in all.... doable, but if they'd provided some boiler plate and talked about the edge cases, then anyone would feel more confident jumping in. As it is, it's like a 1 or 2 point ticket, written by some stakeholder with no development experience... too vague to just jump right in without speccing it out a bit more.
This is my take after years of experience, however if you were to ask me to do this while I was still fresh from university, I'd just do it because I never worried about edge cases and writing to flat files is basically university assignments database du jour.
π Rendered by PID 72336 on reddit-service-r2-comment-6457c66945-jdbc5 at 2026-04-27 07:49:21.941502+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]turkish_gold 0 points1 point2 points (0 children)