how to check chrome version in js

Solutions on MaxInterview for how to check chrome version in js by the best coders in the world

showing results for - "how to check chrome version in js"
Mario
22 Sep 2016
1function getChromeVersion () {     
2    var raw = navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);
3
4    return raw ? parseInt(raw[2], 10) : false;
5}