Internet bandwidth is basically the amount of data that is being transferred over an internet connection in a specific period of time. With JavaScript, we can detect it through the navigator object.
navigator.connection.downlink;
Do copy and paste the code above into your browser console and you will be able to see the speed of your internet.