JavaScript Program to Display Browser Details Using Navigator Object

Write a JavaScript program to display browser details using "navigator" object.

Source Code
    <title>Display browser details</title>
        var browserName = navigator.appName;
        var width = window.screen.availWidth;
        var height = window.screen.availHeight;
        var lastModified = document.lastModified;

        document.write("Your browser is " + browserName);
        document.write("<br>Your screen height is " + height);
        document.write("<br>Your screen width is " + width);
        document.write("<br>This webpage was last modified on " + lastModified);

"Coding Hub - Learn to code" app now available on Google Play Store