How to return userAgent - with function | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 9

How to return userAgent - with function

document.write (get('userAgent')); function get(it) { return navigator.it; }

14th May 2018, 6:26 PM
Arne Van Kerckvoorde
Arne Van Kerckvoorde - avatar
1 Answer
+ 4
document.write (get('userAgent')); function get(it) { return navigator[it]; }
14th May 2018, 8:35 PM
Toni Isotalo
Toni Isotalo - avatar