Menu
Good day To you all!
It’s been a while since I last posted here. Lately I’m in the need to expand my knowledge about JS. I hope you can help me out with a query I have:
I don’t understand the following Syntax:
[CODE]var employees = responseXML.getElementsByTagName(“employees”)[0];
How does the [0] work here? Why is it at the end of an statement? Why index 0 ?
Those were a lot of questions, but I hope you can tell me the general functionality of this syntax.
Thank you very much !
Best Regards,
Jose