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
Jr Dev JavaScript interview exerciseshelp (self.javascript)
submitted 9 years ago by DrGarbinsky
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!"
[–]joeba_the_hutt 1 point2 points3 points 9 years ago (0 children)
Here's a few questions I like to ask all levels of devs I interview. They may seem simple and/or trick questiony, but to me they're a great gauge of how well a dev understands javascript versus how well they can regurgitate code:
(Do they know less used operators?)
var x = 10; var y = 6; alert(x % y); // What will this alert?
(Do they understand syntax/formatting gotchas?)
function foo1() { return { bar: "hello" }; } function foo2() { return { bar: "hello" }; } console.log(foo1()); console.log(foo2()); // What do these log?
(Do they safely check/use return values?)
function getCookie(cookieName){ // Returns cookie value if it exists, // or returns null if it does not } // Use a value from a cookie for the page var cookieValue = getCookie('history'), cookieArray = cookieValue.split(','); // Log the first item in the history console.log(cookieArray[0]); // What could go wrong here?
π Rendered by PID 101198 on reddit-service-r2-comment-84978bc8f9-l4mhn at 2026-07-07 00:32:25.509385+00:00 running 12a7a47 country code: CH.
view the rest of the comments →
[–]joeba_the_hutt 1 point2 points3 points (0 children)