7.What does the following code do?
var userName = $(“user”).firstChild.nodeValue;
a. It puts the value of the userName variable into the HTMLelement with “user” as its id attribute
b.It replaces the text of an HTML element with “userName” as itsid attribute with value “user”
c.It sets the text of an HTML element with “user” as its idattribute
d.It puts the text of an HTML element with “user” as its idattribute into the userName varieable
Expert Answer
An answer will be send to you shortly. . . . .