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-