---
title: "Comment by YAKSH BARIYA on \"Detect Operating System using Javascript\" | Hashnode"
description: "This does not work properly on Android devices. It showed me Linux instead of Android"
url: "https://hashnode.com/posts/detect-operating-system-using-javascript/5f7704347d160d41227d6869/comment/5f79869d7d160d41227d8047"
---

[Discussion](https://hashnode.com/posts/detect-operating-system-using-javascript/5f7704347d160d41227d6869)

Comment [Detect Operating System using Javascript](https://hashnode.com/posts/detect-operating-system-using-javascript/5f7704347d160d41227d6869)

[YAKSH BARIYA](https://hashnode.com/@CodingThunder)

[Oct 4, 2020](https://hashnode.com/posts/detect-operating-system-using-javascript/5f7704347d160d41227d6869/comment/5f79869d7d160d41227d8047)

This does not work properly on Android devices. It showed me Linux instead of Android

[Sarthak Roy](https://hashnode.com/@sarthakroy2002)

[Oct 6, 2020](https://hashnode.com/posts/detect-operating-system-using-javascript/5f7704347d160d41227d6869/comment/5f79869d7d160d41227d8047#reply-5f7bf32e9d088e603ef39949)

yes actually Android is based on Linux.....

[YAKSH BARIYA](https://hashnode.com/@CodingThunder)

[Oct 6, 2020](https://hashnode.com/posts/detect-operating-system-using-javascript/5f7704347d160d41227d6869/comment/5f79869d7d160d41227d8047#reply-5f7bf37fe93896601dd29297)

Is there any way to check if the device is an Android device?? [Sarthak Roy](https://hashnode.com/@sarthakroy2002)

[Sarthak Roy](https://hashnode.com/@sarthakroy2002)

[Oct 9, 2020](https://hashnode.com/posts/detect-operating-system-using-javascript/5f7704347d160d41227d6869/comment/5f79869d7d160d41227d8047#reply-5f7ff249b8638504a7c12555)

I dont know that brother [YAKSH BARIYA](https://hashnode.com/@CodingThunder)

[SAMBIT CHAKRABORTY](https://hashnode.com/@SambitHashnodeChak)

[Oct 13, 2022](https://hashnode.com/posts/detect-operating-system-using-javascript/5f7704347d160d41227d6869/comment/5f79869d7d160d41227d8047#reply-63482a976461073d09df8336)

the basic kernel of android is nothing but a linux. We can say that Android is modified Linux, for providing the support for mobile devices. So, when you're detecting for android, it'll show that it's Linux.
