DEV Community

Sojin Samuel
Sojin Samuel

Posted on

3 1

Can you list out some amazing things Javascript can do

I recently found out, using javascript i can find out the battery level of the current systems, i was really fascianted when i find out.

It wasnt that long ago, may be 2 - 3 days max i think.

I know javascript can do much more amazing things that i can never imagine.

As a javascript developer, i know you're already aware of a lot of features like in this case navigator.getBattery()

A code snippet from stackoverflow to find out your current batterl level:

`navigator.getBattery().then(function(battery) {

var level = battery.level;

console.log(level);
Enter fullscreen mode Exit fullscreen mode

});`

I want to now more what javascript can do, which will excite me more to continue my journey.

can you list out some amazing things javascript can do like in the above case.

Top comments (1)

Collapse
 
timkovik profile image
timkovik

strictly speaking, this can be done not by js, but by the browser. This is the API of the platform. Modern browsers can also monitor the network status, access Bluetooth/contacts/camera/speech recognition/geo/generate binary files (this is one of the most frequent cases of my practice).

The full list of progressive features of the platform can be found here developer.mozilla.org/ru/docs/Web/API

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more