33.8k views
3 votes
JavaScript and HTML

#1 part 1

Use the writeln method of the document object to display the user agent in a

tag in the webpage. Hint: The userAgent property of the window.navigator object contains the user agent.

code-

Demo


-------------------------------------------------------------------------------

#1 part 2

Assign textNode with the first h2 element, and assign listNodes with all elements with a class name of 'language-item'.

code-

1 Answer

1 vote

Answer:

See the explanation

Step-by-step explanation:

#1 part 1

See the attached Image 1

#1 part 2

See the attached Image 2

JavaScript and HTML #1 part 1 Use the writeln method of the document object to display-example-1
JavaScript and HTML #1 part 1 Use the writeln method of the document object to display-example-2
User Nuri Tasdemir
by
3.6k points