Exercise: Know Your Browser

Exercise for extracting browser information using BOM and displaying it on a web page using DOM and JavaScript

We'll cover the following


A web developer only knows HTML. He is struggling to extract information from the browser and view it on the web page. He wants a web page with info about the browser and URL, but can’t do it with just HTML. He has given you the HTML page. You can manipulate all you want to get the needed info. Remember, he did a bad job creating the page. You might need to delete many unnecessary. Let’s get started!

Problem statement

Write code in JavaScript which gives the following web page as output.

Get hands-on with 1200+ tech skills courses.