4 ms·
As a front-end developer who has been in the game for about 7 years now and completely self-taught, I think you're not asking straightforward questions. Sometim
by DigitalSea 13y ago
As a front-end developer who has been in the game for about 7 years now and completely self-taught, I think you're not asking straightforward questions. Sometimes it's the simple stuff that can paint an accurate picture. These 10 questions should weed out those who aren't proficient in Javascript.
Here is what I would ask:
1. How do you query an element with the ID of "amazingelement" in conventional Javascript without the use of any framework?
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.
3. How do you add an element to an array in pure Javascript?
4. How would you round 6.42 in pure Javascript?
5. What's the difference between ECMAScript and JavaScript?
6. What is JSON?
7. What's the name of that guy who wrote jQuery?
8. Show me an example of Javascript that replaces all occurrences of the word "test" to "quiz" in a string.
9. What does an anonymous function in Javascript look like? (bonus points for accounting for jQuery as the framework in use)
10. How can you accurately test if a variable is defined in Javascript?