We use
appVersion and
userAgent to find the version of the browser.
<button onclick="myFunction()">Try it</button>
<p id="fun"></p>
<script>
function myFunction() {
document.getElementById("fun").innerHTML =
navigator.appVersion;
}
</script>
//similarly navigator.userAgent also displays version information of the browser.//