Hey guys I am trying to get the device name and type (Phone Android, Laptop Windows, Computer Mac ... and so on) using javascript and I know that it can be done using "navigator" but I want to ask you what do you think is the best approach for that. I mean every time when a browser is opening my js function should check browser name, device name and type, OS system and other info and so on.
I do not want to use any kind of external libraries.
console.log(navigator);