How can I detect the device type with JavaScript? - 30 seconds of code

How can I detect the device type with JavaScript? - 30 seconds of code

More to explore