Hard Interview Questions?
Hard Interview Questions?
Last week I’ve interviewed a few candidates for a web developer position. Most of the candidates’ resumes indicated that they know JavaScript and jQuery and worked as web developers for at least 3 years. During the interview I wrote a piece of HTML on a whiteboard.
This is the HTML:
<body>
<div id="div1">
<img src="pic.png" />
<ul>
<li>Hello</li>
<li>World</li>
</ul>
<input type="text" id="txt" />
</div>
</body>
The question was how to get the hello text out of the first list item only with JavaScript code and in two different ways. After that the follow-up question was to do the same thing using jQuery.
If the candidate succeeded to answer the questions, the third question was how to put the image source (pic.png) in the textbox.
Do these questions are so hard that none of the candidates succeeded answering all of them?
Will you hire a candidate that can’t answer such questions as a web developer?
I would like to hear what do you think.