TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Testing Front-End Developers

2 pointsby zaporozhetsalmost 12 years ago
Today i was given the task of writing up a test for a couple of new developers applying for a front-end development role. Usually ( most of the times i&#x27;ve been tested ) it has been a boring &#x27;cut up this PSD and include sprinkles some $ on it. However I feel like this is in no way a useful representation of the a front-end developer&#x27;s skillset and they don&#x27;t really take away anything from it either. ( if anything it may deter them from the work ). So i wrote up a purely javascript&#x2F;basic DOM manipulation test that goes as follows:<p>---------------------<p>Make a blank html page with a single text input and an empty list.<p>While you type into this input, every time a user writes an operation<i>, add it to an object called &#x27;OperationHistory&#x27; where the operation</i> is the Property Name and the result of the operation is the property. Then clear the input. If there is a syntax error or maths error; the property must be &#x27;error&#x27;.<p>*operation = any basic arithmetic followed by &#x27;#end#&#x27;. Limit character input to only accept integers and operators.<p>Every 1000 milliseconds, run a function that will determine the highest result in &#x27;OperationHistory&#x27; and append this outcome and the operation itself to the list in the following format:<p>&quot;the following maths problem :&quot; + operation + &quot; = &quot; + outcome + &quot; yielded the highest result so far.&quot;<p>------------------<p>...<p>I guess it&#x27;s not a great test but i&#x27;m purely interested in the javascript ability of the candidates and i couldn&#x27;t find anything on google quickly that couldn&#x27;t be solved quickly by looking it up or SO-ing the problem.<p>Which brings me to my main issue;<p>Where is a resource of cool nonsense tests that I could give to a budding developer and adequately measure their &#x27;real-world&#x27; front-end ability?<p>OR<p>Are there any great resources that help out with this sort of thing?

2 comments

DigitalSeaalmost 12 years ago
As a front-end developer who has been in the game for about 7 years now and completely self-taught, I think you&#x27;re not asking straightforward questions. Sometimes it&#x27;s the simple stuff that can paint an accurate picture. These 10 questions should weed out those who aren&#x27;t proficient in Javascript.<p>Here is what I would ask:<p>1. How do you query an element with the ID of &quot;amazingelement&quot; in conventional Javascript without the use of any framework?<p>2. Write a simple loop that increments a counter from 1 to 50 (bonus points if you can show 2 different ways of doing this), you need to show a conventional pure Javascript implementation of this and any other examples can be framework dependent.<p>3. How do you add an element to an array in pure Javascript?<p>4. How would you round 6.42 in pure Javascript?<p>5. What&#x27;s the difference between ECMAScript and JavaScript?<p>6. What is JSON?<p>7. What&#x27;s the name of that guy who wrote jQuery?<p>8. Show me an example of Javascript that replaces all occurrences of the word &quot;test&quot; to &quot;quiz&quot; in a string.<p>9. What does an anonymous function in Javascript look like? (bonus points for accounting for jQuery as the framework in use)<p>10. How can you accurately test if a variable is defined in Javascript?
zachlattaalmost 12 years ago
Hmm. I&#x27;ve always wondered if giving a candidate a computer (with anything the candidate would need) and telling them to make something would work. It&#x27;d give the interviewer a good idea of their thinking process and what they feel their strengths are.