Javascript + jQuery Interview Questions
Posted: Fri Jun 19, 2009 1:16 pm
I have an interview coming up. I think I know jQuery and Javascript, but this interviewer is told to me to be quite tough. So, I want to read up on some of the things I might need to know.
In the last interview I had, they tended to draw some of their material from like recent articles on the popular programming tech sites like sitepoint.com, as well as where a lot of the buzz was over the past 2 years regarding a particular topic.
The Point -- So, do you have any suggested interview questions they might pose for me?
To help you here, I've come up with a few guesses, of which I already know the answers to the ones below:
1. What is a prototype? (And no, not the open source Prototype library for Javascript.)
2. What does the "each" property of jQuery provide?
3. (This interviewer doesn't have time for long drawn out answers, so this one might not work.) How might I use the "extend" property in jQuery, and more than just extending jQuery's features -- I mean, how would you go about using it?
4. Is the AJAX in your browser async or sync?
5. Why would I want the AJAX to be async vs. sync?
6. Name some things I can do with the colon operator in a jQuery selector.
7. How might I do a jQuery selector where I want to see if an HTML attribute contains something?
8. How many simultaneous connections can a browser have back to the server for XHTML requests? How many for AJAX requests?
9. What does .map() do in jQuery?
10. What is the difference between setTimeout() and setInterval() in Javascript?
And here's a list of others:
http://dev.fyicenter.com/Interview-Ques ... avaScript/
In the last interview I had, they tended to draw some of their material from like recent articles on the popular programming tech sites like sitepoint.com, as well as where a lot of the buzz was over the past 2 years regarding a particular topic.
The Point -- So, do you have any suggested interview questions they might pose for me?
To help you here, I've come up with a few guesses, of which I already know the answers to the ones below:
1. What is a prototype? (And no, not the open source Prototype library for Javascript.)
2. What does the "each" property of jQuery provide?
3. (This interviewer doesn't have time for long drawn out answers, so this one might not work.) How might I use the "extend" property in jQuery, and more than just extending jQuery's features -- I mean, how would you go about using it?
4. Is the AJAX in your browser async or sync?
5. Why would I want the AJAX to be async vs. sync?
6. Name some things I can do with the colon operator in a jQuery selector.
7. How might I do a jQuery selector where I want to see if an HTML attribute contains something?
8. How many simultaneous connections can a browser have back to the server for XHTML requests? How many for AJAX requests?
9. What does .map() do in jQuery?
10. What is the difference between setTimeout() and setInterval() in Javascript?
And here's a list of others:
http://dev.fyicenter.com/Interview-Ques ... avaScript/