News for hackers. Stuff that matters.
Re:Javascript interview question/exercise by pedalpete on Friday July 05, 2013 @06:57AM (#5994342)
Is a countdown in any way related to your business?

I don't think a countdown is a bad way to start, but it is probably a bit basic.

I'd get them to do something that shows a level of understanding of OOP. Maybe just expand on the countdown.

Can they build a clock which would countdown, then countup either at the click of a button or if it reached a certain digit? Can they reset the clock, pause it?? Those sorts of things.

I think any programmer worth their weight should be able to do that in 30 minutes. In fact, I'm going to give it a try right now and see how long it takes.

Re:Javascript interview question/exercise by pedalpete on Friday July 05, 2013 @07:24AM (#5994396)
So that was 25 minutes, and I have it working, though I admit, I am not a brilliant Javascript programmer, but I can get it done, and I made up the test, so... I probably had a head start.

I forgot what setInterval was, and had to look that up (I haven't used it in years, seems setTimeout is much more useful).

Hope that helps.